Skip to content

Swift OpenAPI Generator 0.1.6

Compare
Choose a tag to compare
@czechboy0 czechboy0 released this 02 Aug 12:14
· 236 commits to main since this release
c181ed7

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-0001
  • strictOpenAPIValidation: 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

Full Changelog: 0.1.5...0.1.6