Skip to content

Releases: Carapacik/swagger_parser

1.35.0

01 Nov 11:25

Choose a tag to compare

  • Add infer_required_from_nullable
infer_required_from_nullable: true

Schema without required array:
- id: type: integer → required int id
- name: type: string → required String name
- desc: type: string, nullable: true → String? desc
  • Fix nullable array item types generation

1.34.0

18 Oct 16:23
8e041d8

Choose a tag to compare

Add include_if_null (#333)

1.32.1

16 Oct 11:34

Choose a tag to compare

  • Fix CHANGELOG duplication

1.32.0

16 Oct 09:37

Choose a tag to compare

  • Add complete sealed classes(oneOf/anyOf) support for json_serializeble serializer
    • 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 for dart_mappable serializer
    • 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_when option to control union type generation for dart_mappable serializer
    • dart_mappable_convenient_when: true - generates legacy when<T>, maybeWhen<T> methods
    • dart_mappable_convenient_when: false (default) - generates sealed classes for better type safety
  • Add @Deprecated() annotation to when<T>, maybeWhen<T> method with dart_mappable. Use dart pattern matching
  • Fix creating duplicated unknown property enum with dart_mappable and unknown_enum_value: true
  • Fix for handle nullable discriminator unions properly

1.30.0

20 Aug 11:28

Choose a tag to compare

  • Add support for merging all generated code into single output file using the merge_outputs option

1.29.0

19 Aug 14:17

Choose a tag to compare

Features

  • Add support for non-discriminated unions (oneOf/anyOf without a discriminator)
  • Filter out unused schemas when using include_tags or exclude_tags

Fixes

  • Fix the client name for untagged paths to properly fall back to the configured fallback_client instead of client
  • Fix the fallback_client configuration to default to fallback instead of default to avoid conflicts with the Dart default keyword 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_tags is specified

1.28.0

06 Aug 20:00

Choose a tag to compare

  • Fix documentation
  • Fix ensure consistent file naming for tags with alphanumeric suffixes

1.27.0

01 Aug 08:03

Choose a tag to compare

  • Allow to filter the generation of endpoints in a client by tags
  • Allow to define a fallback client for endpoints that do not have a tag - fixes [#271]

1.26.2

15 Jul 06:22
afade1a

Choose a tag to compare

1.24.4

29 Jun 05:55
cd849f0

Choose a tag to compare

  • Added generation of getter $valuesDefined to automatically filter out unknown values
    useful when we would like to list only values that we are aware about