tonik 0.0.1
tonik: ^0.0.1 copied to clipboard
A Dart code generator for OpenAPI 3.0 and 3.1 specifications.
Tonik #
A Dart code generator for OpenAPI 3.0 and 3.1 specifications.
[Logo]
Motivation #
There are already numerous projects available to generate Dart code from OpenAPI documents. But all lack certain, most often critical features. They might not support integer enums, composable data types (oneOf, anyOf, allOf), fail if you use existing class names in Dart or dependencies (e.g. Response of dio) or handle only success responses.
This package aims to overcome these shortcomings.
Features #
Usage #
Roadmap #
Short term goals #
allowReservedsupport for query parametersformat: urimapping to DartUri- Add custom
Datemodel in util package to handleformat: dateproperly - E2E tests (using imposter?)
- Full decoding and encoding support for all of, any of and one of
- Support for
x-dart-name,x-dart-typeandx-dart-enums
Long term goals #
- Supporting the
notkeyword - Encoding and decoding of
application/x-www-form-urlencoded - Optionally generating
unknownenum case - Support for
additionalProperties - Server Templating support
- Remove build_runner dependency from all packages
- Default values
- Supporting
byteandbinaryformatted strings
Non goals #
- Parameter encoding via content, see schema vs content
- XML de- and encoding
- Min, Max and multiple validation
- Pattern validation