Releases: apple/swift-openapi-generator
Swift OpenAPI Generator 0.2.0
See the full announcement on the Swift forums.
What's Changed
SemVer Minor
- Prepare 0.2.0 release (API breaking changes) by @czechboy0 in #218
- Stop generating empty input/output structs (query, headers, ...) by @czechboy0 in #235
- Include parameters in the content type name by @czechboy0 in #236
SemVer Patch
- Bump OpenAPIKit - fixes a server variable parsing issue by @czechboy0 in #233
Other Changes
- Fix typos by @Sajjon in #237
- Docs fixes by @czechboy0 in #238
New Contributors
Full Changelog: 0.1.13...0.2.0
Swift OpenAPI Generator 0.1.13
What's Changed
SemVer Patch
- [Generator] Integrate the new URI and String coders by @czechboy0 in #226
Full Changelog: 0.1.12...0.1.13
Swift OpenAPI Generator 0.1.12
What's Changed
SemVer Patch
- Support OpenAPI 3.1 in addition to 3.0 by @czechboy0 in #219
- Allow refs to oneOf/anyOf inside a oneOf with a discriminator by @czechboy0 in #224
- Allow non-unique values in oneOf.discriminator.mapping by @czechboy0 in #225
Full Changelog: 0.1.11...0.1.12
Swift OpenAPI Generator 0.1.11
What's Changed
SemVer Patch
- [Generator] Accept header by @czechboy0 in #185
Other Changes
- [Proposal] SOAR-0003 Type-safe Accept headers by @czechboy0 in #201
Full Changelog: 0.1.10...0.1.11
Swift OpenAPI Generator 0.1.10
What's Changed
SemVer Patch
- Emit JSON path reference in comments for all generated types by @takeshi-1000 in #196
- [Generator] Stop generating an undocumented case for enums/oneOfs by @czechboy0 in #205
- Fix warning in generated server code by @arthurcro in #209
- All descriptions defined in the OpenAPI document are generated by @takeshi-1000 in #213
- Additional 'case' blocks cannot appear after the 'default' block of a 'switch' by @dpasirst in #212
- Bump OpenAPIKit to 3.0.0-beta.1 by @czechboy0 in #215
Other Changes
- [Docs] Clarify what constitutes a breaking change of generated code by @czechboy0 in #200
- Document using Server-sent Events with OpenAPI by @czechboy0 in #208
- Remove redundant Equatable conformances in code generation by @arthurcro in #214
New Contributors
Full Changelog: 0.1.9...0.1.10
Swift OpenAPI Generator 0.1.9
What's Changed
SemVer Patch
- Nullable enums with an empty string fail to get generated by @czechboy0 in #176
- Stop treating schema warnings as errors by @czechboy0 in #178
- Allow more types of subschemas in anyOf/allOf by @czechboy0 in #179
- [Bugfix] Finalize diagnostics even when an error is thrown by @czechboy0 in #187
- Ignore inline schemas in oneOf with discriminator by @simonjbeaumont in #189
- Retain operation level parameters over path level ones by @arthurcro in #183
- SOAR-0002: Improved naming of content types by @czechboy0 in #170, #194
- Fix range responses by @czechboy0 in #198
Other Changes
- Enable strict concurrency checking in CI by @czechboy0 in #191
New Contributors
- @arthurcro made their first contribution in #183
Full Changelog: 0.1.8...0.1.9
Swift OpenAPI Generator 0.1.8
What's Changed
SemVer Patch
- Forward schema warnings to diagnostics by @czechboy0 in #174
- [Generator] Support unexploded query items by @czechboy0 in #171
Other Changes
- Refactor ContentType + improve content type matching by @czechboy0 in #173
Full Changelog: 0.1.7...0.1.8
Swift OpenAPI Generator 0.1.7
New Features in Preview
You can try out upcoming features by enabling the following feature flags on the CLI, or in the config file:
multipleContentTypes
: support for handling multiple request and response body content types; note that the support for propagating the Accept header has not landed yet and is tracked by #160
This feature will become the default behavior in 0.2.0, so you can help provide early feedback by explicitly turning it on in your project.
What's Changed
SemVer Patch
- Improve the diagnostic for when a schema is unsupported by @czechboy0 in #164
- [Bug] Handle the '\r\n' newline correctly by @czechboy0 in #169
- [Generator] Multiple content types support by @czechboy0 in #146
Other Changes
- Add tests for responses with examples by @simonjbeaumont in #166
Full Changelog: 0.1.6...0.1.7
Swift OpenAPI Generator 0.1.6
New Features in Preview
You can try out upcoming features by enabling the following feature flags on the CLI, or in the config file:
proposal0001
: improved OpenAPI -> Swift type, property, and other name conversion, for details, check out the proposal SOAR-0001strictOpenAPIValidation
: catches more issues in the input OpenAPI document, helping reduce the number of times non-compiling code is generated, for details, check out the PR
These features will become the default behavior in 0.2.0, so you can help provide early feedback by explicitly turning them on in your project.
What's Changed
SemVer Patch
- Validate incoming OpenAPI docs using OpenAPIKit's built-in validation by @czechboy0 in #130
- Command Plugin for generating the source code by @MahdiBM in #98
- fix: Correct data type of date-formatted strings by @yanniks in #137
- Add dry run option to CLI by @denil-ct in #123
- Add the ability to set feature flags by @czechboy0 in #139
- Enable the generated server-side code to validate the content-type. by @takeshi-1000 in #140
- Deprecation warnings not emitted when calling operations that are deprecated by @czechboy0 in #153
- Fix an incorrect reference in the API stability article by @czechboy0 in #154
- Fix server handler Sendability warnings by @czechboy0 in #156
- Calculate required response header parameters for initialize by @takeshi-1000 in #150
- Update to OpenAPIKit 3.0.0-alpha.9 by @simonjbeaumont in #147
- [SOAR-0001] Implement Encoding for Property Names by @denil-ct in #89
- Hide strict OpenAPI validation behind a feature flag by @czechboy0 in #162
Other Changes
- Move ContentType.identifier logic into the translator by @czechboy0 in #141
- [NFC] Inject asSwiftSafeName as a dependency by @czechboy0 in #148
- Fix various typos in docc articles by @gjcairo in #155
- [Generator] Design away EncodableBodyContent by @czechboy0 in #152
- [NFC] Refactor PetstoreConsumerTests to allow multiple versions by @czechboy0 in #157
- [Generator] Consistent style for initializing local variables by @czechboy0 in #159
- Add a proposal state for when merged behind a feature flag by @czechboy0 in #161
- [Proposal] SOAR-0001 Improved OpenAPI -> Swift name mapping by @denil-ct in #95
New Contributors
- @yanniks made their first contribution in #137
- @takeshi-1000 made their first contribution in #140
- @gjcairo made their first contribution in #155
Full Changelog: 0.1.5...0.1.6
Swift OpenAPI Generator 0.1.5
What's Changed
SemVer Patch
- Lower unsupported platform minimum versions by @czechboy0 in #126
Full Changelog: 0.1.4...0.1.5