elm-open-api-cli
elm-open-api-cli copied to clipboard
A CLI tool for generating Elm modules from Open API specs.
I have an OpenAPI spec with the following request: ```json "/api/files": { "post": { "tags": [ "files" ], "summary": "Create File", "operationId": "create_file_api_files_post", "requestBody": { "content": { "multipart/form-data": { "schema":...
> I also see that cases such as [Agent](https://spacetraders.stoplight.io/docs/spacetraders/db315e27786ad-agent) and their related validations are not correctly generated also, for example lengths or ranges don't seem to be tested, only that...
See discussion on Discourse https://discord.com/channels/534524278847045633/1127980433263566889/1158093368291770368
This will require some design work as these can be nearly any value. - How do we let users hook into the CLI? - How do we let users generate...
- Maybe switch to [MaybeJustJames/yaml](https://package.elm-lang.org/packages/MaybeJustJames/yaml/latest/) as it's been more recently updated? - Maybe fork and fix it ourselves
Is there a way send custom headers with the generated Cmd/Task endpoints? For instance for cache control, authentication ...
The version in the CLI help text should always match the release version (dictated by package.json). Write an elm-review rule that does this.
Many thanks for all your hard work on `elm-open-api`, it's much appreciated! Further to our discussion on Elm Discourse, here's information regarding the problem and the solution I've implemented. ##...
It would have caught an issue in #114