Releases: Carapacik/swagger_parser
Releases · Carapacik/swagger_parser
1.35.0
1.34.0
1.32.1
1.32.0
- Add complete sealed classes(
oneOf/anyOf) support forjson_serializebleserializer- WARNING: Undiscriminated sealed classes use O(n) try-catch deserialization where n is the number of variants
- RECOMMENDED: Add discriminator properties to your OpenAPI specification for O(1) performance
- Add support for sealed classes fallback for failed decoding
- Add complete sealed classes(
oneOf/anyOf) support fordart_mappableserializer- WARNING: Undiscriminated sealed classes use O(n) try-catch deserialization where n is the number of variants
- RECOMMENDED: Add discriminator properties to your OpenAPI specification for O(1) performance
- Add support for sealed classes fallback for failed decoding
- Add
dart_mappable_convenient_whenoption to control union type generation fordart_mappableserializerdart_mappable_convenient_when: true- generates legacywhen<T>, maybeWhen<T>methodsdart_mappable_convenient_when: false(default) - generates sealed classes for better type safety
- Add
@Deprecated()annotation towhen<T>, maybeWhen<T>method with dart_mappable. Use dart pattern matching - Fix creating duplicated
unknownproperty enum with dart_mappable andunknown_enum_value: true - Fix for handle nullable discriminator unions properly
1.30.0
1.29.0
Features
- Add support for non-discriminated unions (
oneOf/anyOfwithout a discriminator) - Filter out unused schemas when using
include_tagsorexclude_tags
Fixes
- Fix the client name for untagged paths to properly fall back to the configured
fallback_clientinstead ofclient - Fix the
fallback_clientconfiguration to default tofallbackinstead ofdefaultto avoid conflicts with the Dartdefaultkeyword in the generated code - Fix OpenAPI spec parsing to correctly preserve casing for
SCREAMING_SNAKE_CASE - Fix filtering so paths without tags are filtered out when
include_tagsis specified
1.28.0
1.27.0
1.26.2
- Align default value handling for parameters according to OpenAPi Spec https://swagger.io/docs/specification/v3_0/describing-parameters/#default-parameter-values