swagger_dart_code_generator 3.0.1 swagger_dart_code_generator: ^3.0.1 copied to clipboard
Have you been turned into a problem with writing code for Http requests? This package can help. It has all of the Http and model codegen functionality you have been looking for.
3.0.1 #
- Different fixes and improvements
2.15.2 #
- Fixed generation of some complex
allOf
chains
2.15.1 #
- Fixed some issues
2.15.0 #
- Changed option
enums_case_sensitive
to correctly default totrue
as stated in documentation - Fixed option
enums_case_sensitive
to work with nullable deserializers when set tofalse
- Modernized
example/
- Bump
package:json_annotation
to^4.8.1
2.14.2 #
- Added option
generate_first_succeed_response
to generate first succeed response ordynamic
(#703)
2.14.1 #
2.13.5 #
- Added
ErrorConverter
to create method
2.13.4 #
2.13.3 #
- Some fixes and improvements
2.13.1 #
2.12.2 #
2.11.13 #
- Fixed different issues
2.11.12 #
2.11.11 #
- Fixes some stuff related to generation DateTime, reponse types and parameters types
2.11.10 #
- Bump
package:http
to^1.0.0
- Bump minimum dart version to
^3.0.0
- Fixed #625 generation of query enum parameters
2.11.11 #
- Fixed generation of fields of some models
2.11.7 #
- Updated SDK version
2.11.5 #
- Fixed generation of very complex models inside of arrays inside of models etc.
2.11.4 #
- Fixed generation of models without properties and sample types
2.11.3 #
- Some fixed and refactoring
2.11.2 #
- Some fixed and refactoring
2.11.1 #
- Fixed generation of models with type
number
2.11.0 #
- Code refactoring
- Breaking Changed naming of Responses, RequestBodies
2.10.5 #
- Added converter as optional parameter for create()
2.10.4 #
- Fixed generation of multipart body parameters
2.10.3 #
2.10.1 #
- Fixed some issues
2.10.0 #
2.9.0 #
2.8.9 #
- Fixed generation of request bodies and defined lists types
2.8.8 #
- Fixed generation of some List models
2.8.7 #
2.8.6 #
2.7.9 #
- Fixed generation of List of enums using nullableLists properties
2.7.8 #
- Added option not to override
toString()
method
2.7.7+1 #
- Returned generation of @JsonValue for enums
2.7.6 #
2.7.5 #
- Added new build options flag
override_equals_and_hashcode
to disable generation of hashCode and equals if need to decrease codebase
2.6.0 #
- Breaking Removed
use_default_null_for_lists
option - Added new option:
classes_with_nullabe_lists
option to have avility to customise nullable lists on separate class. Use.*
regex
2.5.7 #
- Fixed some issues in swagger examples
2.5.6 #
- Fixed generation of basic types in responses by ref
2.5.5 #
- Fixed cases when enums has integer values in models
- Fixed cases with enums in request bodies
2.5.3 #
- Bugfixing
2.5.2 #
- Added new build option
additionalHeaders
. It allows to add some headers for ALL service requests
2.5.1 #
- Changed generation of dynamics enums to string enums in requests
2.5.0+2 #
- Code format
2.5.0+1 #
2.4.10 #
- Fixed generation of requrst properties annotations (#384)
- Various fixes and improvements
- Refactored generator caching flow
2.4.9 #
- Added generation of
allOff
models to not class, but to have ability to map it to any type
typedef ClassName = Map<String, dynamic>
2.4.7 #
- Made required properties in models not nullable (#324)
- Added
nullableModels
build option to made exeptions
2.4.2 #
2.4.1 #
2.4.0 #
- Downgraded
path
dependency
2.4.0-prerelease.4 #
2.4.0-prerelease.2 #
- Added ability to use swagger files from internet (#316)
input_folder
option is not requited now- Fixed naming issues and enum names generation
2.3.10 #
- Fixed cases when we have
Stream<SomeClass>
as request parameter - Fixed cases when we have
List<List<....<SomeClass>>>
in model properties
2.3.4+1 #
- Fixed fromJson method for integer Enum fields in models
2.3.3 #
- Removed use_inheritance option. Inheritance is supported by copy-pasting parent fields(#297)
2.2.10 #
- Fixed support of int64 fields in Models
2.2.9 #
- Fixed support of fields type integer and format int64
2.2.6 #
- Added example project
2.2.5 #
2.2.4 #
- Fixes issues with allOf support
- Fixed issue with basic types in responses models
2.2.3 #
2.2.1 #
- Added ability to generated models to separate file(#244)
- [BREAKING]: Removed generation of client_index if generate only models
2.2.0+1 #
- Updated changelog (see previous version changes)
2.2.0 #
- [BREAKING]: Upgraded to support json_serializable 5.0.0
2.1.3 #
- Fixed cases when swagger has not put post get requests
- Added validation for requests names generation
2.1.2 #
- Updated packages json_serializable, json_annotation, build_runner
2.1.1+4 #
- Fix for default value for named parameters
2.1.1+3 #
2.1.1+2 #
- Fixed issues when content has no application/json child
2.1.1+1 #
- Fixed cases when field number 'number' generated as $num(#235)
- Fixed cases when field 'num' generated ad 'num' (basic dart type)
2.1.0-prerelease.9 #
2.1.0-prerelease.7 #
2.1.0-prerelease.6 #
- [BREAKING]: Added dollar signs to generated converter and mappings
2.1.0-prerelease.5 #
2.1.0-prerelease.4 #
- Fixed cases with dashes in request named
- Fixed models from responses names generation
- Fixed type
YamlMap
is not a subtype of typebool?
in type cast(#208)
2.1.0-prerelease.3 #
- [BREAKING]:
includeIfNull
nowbool?
value. Needs update ofbuild.yaml
if this feature used
2.1.0-prerelease.2 #
2.1.0-prerelease.1 #
- Fully refactored requests generator
2.0.8+1 #
2.0.8 #
- Fix case when enum in model has name with underscores.
- Updated logo design
2.0.7 #
- Fixed models generator in cases of List of Lists of Lists of... of some type
- Formatted code
2.0.5+2 #
- Fixed issue with list of enums in request parameter
2.0.5 #
- Added new generator_options
2.0.4 #
- Added equals override method to all Models
2.0.3 #
- Removed meta dependency
2.0.2 #
- Fixed meta version to 1.3.0
2.0.1 #
- Updated dependencies
- Added possibility to made postfix for models
2.0.0-nullsafety.9 #
- Removed ..RemoveWhere spike on generated models
2.0.0-nullsafety.8 #
2.0.0-nullsafety.7+2 #
- Fixed critical error
2.0.0-nullsafety.7+1 #
- Made header default values not sensitive
2.0.0-nullsafety.7 #
- Added build option to set default values for headers
2.0.0-nullsafety.6 #
- Made all models parameter not required
2.0.0-nullsafety.5 #
- Fixed generation of Lists of Strings for models
2.0.0-nullsafety.4 #
- Fixed issues with null-safety
2.0.0-nullsafety.3+3 #
- Fixed analyser issues
2.0.0-nullsafety.3+2 #
- Updated documentation
2.0.0-nullsafety.3+1 #
- Updated dependencies
2.0.0-nullsafety.3 #
- Implemented generation of models from responses injected
2.0.0-nullsafety.2+1 #
- Improve documentation
2.0.0-nullsafety.2 #
- Made generated enums not nullable
2.0.0-nullsafety.1 #
- Removed nullable from fields with default values
2.0.0-nullsafety.0 #
- Added support for null safety
1.7.1 #
- Generate models for 201 HTTP Responses too
1.7.0 #
- Added support of requestBody field for POST requests
1.6.8 #
- Fixed issue with usage of KEY instead of NAME on defined parametets
1.6.7 #
- Fixed issue with basic types in array elements
1.6.6+2 #
- Added null-check for _formatDate method
1.6.6+1 #
- Removed dependency to intl
- Removed support of template of date
- Set date parsing to
yyyy-MM-dd
1.6.6 #
- Added generation of custom date to json mapping.
- Added string build parameter with date format
date_formatter
1.6.5+2 #
- Hotfix for body generation
1.6.5+1 #
- Hotfix of using meta
1.6.5 #
- Fix issue with requestBody parameter. It was not used, currently it adds 'body' parameter to requests
1.6.4 #
- Added support of default value per item for bool properties. For ex.
"name": bool
, default istrue
1.6.3 #
- Fixed issue with
allOf
exception
1.6.2 #
- Fixed issue with datetime in refs
1.6.1 #
- Fixed issue with enums in definitions and Date time
1.6.0 #
- Added new build option use_inheritance to enable/disable inheritance support for v3
- Fixed issue with basic types (String, int...) used as definitions
1.5.1 #
- Added 'export file_name.swagger.enums.dart' to main generated file
1.5.0 #
- Fixed issue with pre-defined parameters on V3 version
1.4.9 #
- Fixed issue with Lists of enums in definitions
- Fixed issue with defined parameters on v2
1.4.8 #
- Introduced new flag to manage @required attribute of Headers
1.4.6 #
- Added generation of copyWith method for models
1.4.5 #
- Fixed problems with dash in file name(#99)
- [BREAKING]: Fixed enums naming. Enums with _ are replaced by PascalCase. For example, Response_type replaced by ResponseType.
1.4.4 #
- Fixed issue with
build_only_models
flag - [BREAKING]: fix misspelling with
overridden
word. If you use it, please add additionald
.
1.4.3 #
- Fixed error with ref in
allOf
and bool values in enums
1.4.2 #
- Fixed issue with adding responses to
JsonSerializableConverter
mapping
1.4.1 #
- Fixed issue with enum names in requests
- Fixed reusable Components - Parameters map
1.4.0 #
- Added support of int in request fields and models fields (Previously was only integer)
1.3.9 #
- Added ignoring of request parameters with empty IN parameter
1.3.8 #
- Added includeIfEmpty option to build options
- Added support of requestBody parameter (And enums as requestBody parameter)
- Fixed some minor bugs
1.3.7 #
- Fixed case when empty Enums generated from models
1.3.6 #
- Removed generation of empty Enums files
1.3.5 #
- Added new flag use_path_for_request_names. Read README to learn more about it
- Fixed commas in request parameters
- Fixed extends+ClassName structure for Swagger v3
- [BREAKING]:Removed
defaultValue
property for generated Lists of Enums
1.3.4 #
- Fixed not valid strings in FromJson method
1.3.3 #
- Added new property to build config named enums_case_sensitive
1.3.2 #
- Fixed issue when parsing List of Enums
1.3.0 #
1.3.1 #
- Code refactoring
- Removed swaggerGeneratedUnknown for Enums
1.2.2 #
- Fixed enums names
1.2.1 #
- Added sorting of imports and exports in alphabetical order
1.2.0 #
- Enums become being generated in separate file
- Fixed issues with big swagger files(#58)
- Fixed some bugs
1.1.0 #
- Fixed issues with Enums usage
- Fixed issues with enum naming name
- Fixed some bugs
1.0.10 #
- Fixed issue with enums in request bodies
1.0.9 #
- Implemented possibility to have enums in request body
1.0.8 #
- Fixed not standard request parameter Type names
- Added output message in case of formatting error
1.0.7 #
- Fixed a lot of issues with Enums in request parameters
- Changed naming approach for Enums in request parameters
- Fixed issue with key words in Enum/Model names
1.0.6 #
- Added support of
unknownEnumValue: MyClass.swaggerGeneratedUnknown
1.0.5 #
- Added usage of auto formatting code
1.0.4 #
- Fixed build error on Example
- Removed empty lines in pubspec.yaml
- Added defined type to generated converters
1.0.3 #
- Remove unnecessary braces
- Fixed client_index.dart file
1.0.2 #
- Implemented inheritance support. Models can extend others.
- Fixed bug with build_only_models flag
- Added missing tests for models_generator
1.0.1 #
- Fixed bug with request parameter and result type, when schema.ref used
- Added real example of usage with Pet Store
1.0.0+2 #
- Fix score on pub.dev
1.0.0+1 #
- Add more info to readme
- Fix warnings
- Add code coverage(codecov)
1.0.0 #
- Initial release