swagger-elm icon indicating copy to clipboard operation
swagger-elm copied to clipboard

Generate Elm types and decoders based on a Swagger file

Results 6 swagger-elm issues
Sort by recently updated
recently updated
newest added

Given a swagger definition with `paths`, we should be able to generate Http tasks to request that data. This would cut down on the boilerplate written by a huge amount,...

I recently tried the version of swagger-elm hosted on github and found that it won't accept my OpenAPI JSON.

E.g `type ResourceType = Text | Title | Article` and `type Article = Article ArticleRecord`

Currently object and array `definitions` are defined using union types, to enable recursive types. For example: ```elm type Article = Article ArticleRecord ``` I'm pondering if it would make sense...

Consider the code ```elm type alias ArticleRecord = { rules : Maybe Rules -- other non-pertinent stuff } decodeArticle : Decoder ArticleRecord decodeArticle = decode ArticleRecord |> maybe "rules" decodeRules...

help wanted

Example input: ``` Banana: type: object required: - banana_id properties: banana_id: type: string ``` right now generates: ```elm type alias BananaRecord = { banana_id: String } decodeBanana = ... ......