Skip to content

Investigate parsing of generic 'array' and 'object' types #61

Open
@dragonwasrobot

Description

@dragonwasrobot

Investigate whether there is a reasonable type+parser+decoder that can be generated from the generic types:

{ "type": "object" }

and

{ "type": "array" }

i.e. maybe some kind of restricted versions of Dict and List like:

type SimpleType
   = SimpleBoolean Bool
   | SimpleFloat Float
   | SimpleInteger Int
   | SimpleIntegerArray (List Int)
   | SimpleFloatArray (List Float)

type SimpleDict =
    Dict String SimpleType

type SimpleList =
    List SimpleType

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions