swagger_to_dart 3.5.0
swagger_to_dart: ^3.5.0 copied to clipboard
Convert Swagger to Dart using freezed and retrofit support only 3.1.0 openApi
3.5.0 #
- Add support to
text/plaincontent type
3.4.0 #
- Fix names ends with
?prefix renamed toNullablefor file and class
3.3.0 #
- Allow nullable
schemain method parameters
3.2.1 #
- Fix
Freezedannotation with union freezed classes
3.2.0 #
- Add support
discriminatorinanyOfandoneOfand usepropertyNamefor freezedunionKey
3.1.1 #
- Add support to
nullableflag inschema
3.1.0 #
- Support
Colorfrom Stringcolorandcolor-hexformat - Fix nested primitives generic type
Parent<Bool>->Parent<bool>
3.0.0 #
-
Support
int,Stringenum's value -
Support multiple type of fallback in enum generation
-
Upgrade
build_runner: ^2.5.2version -
Fix default generation config
swagger_to_dart: url: http://localhost/openapi.json input_directory: schema/swagger.json output_directory: lib/src/gen model: support_generic_arguments: true union_class_fallback_name: fallback enum_fallback_type: first api_client: use_class_for_query_parameters: true
2.4.0 #
- Fix issue with
MultipartandFormUrlEncoded - Support
fromJsonin enum classes
2.3.0 #
- Pass
--configflag to specify the configuration file - Fix
base_client_api.dartfile when passing custom nameexports.dartin theexport.dartfile - Use custom
jsonConvertorbase ongeneration_sourcefor examplegeneration_source: FastAPIinswagger_to_dart.yamlfile
2.2.0 #
- Fix Client name in
BaseApiClientfromCmstoCms
2.1.5 #
-
Add option to pass
fallbackunion callswagger_to_dart: # ... model: # String or null union_class_fallback_name: fallback -
Skip special character for fallback
FreezedUnionKey
2.1.4 #
- Skip special character for string generation using
r''
2.1.2 #
- Fix class name in generation of
oneOfclasses
2.1.1 #
- Support minimal sample generation
- Support non ascii generation
2.1.0 #
- Support generic
freezedclasses generation - Support generic Response with
retrofit
2.0.1 #
- Fix union key for
oneOftype
2.0.0 #
- Use code_builder package to do type safe code generation
1.5.5 #
- Support success response with 201
1.5.4 #
- Update flutter version to 1.5.4
1.5.3 #
- fix fallbacks
1.5.2 #
- Add support to union params by @Shahad-999
1.5.1 #
- Fix union feezed class generation with
abstractinstead ofsealed
1.5.0 #
- Fix union class name duplication
1.4.0 #
- Fix workflow
1.3.0 #
- Add
.vscode/settings.jsonfile to the dart example - Add
analysis_options.yamlfile to the dart example - Add
build.yamlfile to the dart example - Add more FastAPI swagger Example
1.2.0 #
- Support MultipartFile in
@Partannotation - Support FastAPI
pydantic-extra-typespackage - Add Convertors
1.1.0 #
- Support flutter 3.29.2
- Added support for fetching OpenAPI specifications directly from URLs (JSON format only)
- Added support for automatically saving fetched specs locally
- Added support for custom configuration file path with
--configoption - Improved error handling for OpenAPI schema parsing
- Removed YAML OpenAPI specification support to focus on JSON format
1.0.0 #
- Support flutter 3.29.0
- Support freezed 3.0.0
0.3.0 #
- Update flutter version to
3.29.0
0.2.0 #
- If description key contains
deprecatedin the message it will be marked as deprecated by @masreplay - support
deprecated()for framework that doesn't support deprecated flag in the field for example FastAPI by @masreplay
0.1.8 #
- Add field name from the api like 'per_page' to 'perPageKey = 'per_page';' by @shahad999'
0.1.6 #
MultipartFilesupport instead ofFileinpartby @shahad999
0.1.5 #
- union class fields
0.1.4 #
- add support to
listof typeoneOfby @shahad999
0.1.3 #
- Fix List type
0.1.2 #
- Support one of as direct request body
0.1.1 #
- Fix query name in
@Queryannotation by @shahad999
0.1.0 #
- Add support to
color-hexformatinstringtype
0.0.9 #
- Include metadata in
ApiClientgenerated class
0.0.8 #
- Fix read the
JsonKey.namefrom swaggerkeyinstead of thetitle
0.0.7 #
- Add
@deprecatedannotation - Fix
@JsonKey(name: '')name, was changing the name to snake_case
0.0.6 #
- Fix bugs
0.0.5 #
- Fix multi part as class
0.0.4 #
- Fix multi line description
0.0.3 #
- Add description and documentation to the generation
0.0.2 #
- Add main.dart to the example
0.0.1 #
- Initial version