Releases: open-api-spex/open_api_spex
Releases · open-api-spex/open_api_spex
v3.15.0
v3.14.0
What's Changed
- Allow casting atoms as strings by @zorbash in #497
- Relax dependency constraint on ymlr by @thbar in #502
- Implement casting of "byte" string type by @gmile in #504
- Make OpenApiSpex.resolve_schema/2 work with schema modules by @zorbash in #458
- Fix oneOf/allOf/anyOf and schema module in Discriminator mapping by @lucacorti in #455
New Contributors
Full Changelog: v3.13.0...v3.14.0
v3.13.0
What's Changed
- Document OpenApiSpex.Plug.NoneCache by @zorbash in #480
- Improve examples by @zorbash in #481
- fix: Delete duplicated key in struct error by @MichalDolata in #452
- Fix compilation warnings by @zorbash in #479
- Allow to configure casting to not automatically populate default values by @albertored in #460
- ** (UndefinedFunctionError) function nil.operationId/0 is undefined by @rolandtritsch in #447
- Fix mix config warnings in examples by @zorbash in #486
- Allow omitting parens for test assertion functions by @zorbash in #485
not
schemas not correctly decoded by @albertored in #484- Add start-app option to mix tasks by @natali-maximenko in #489
- Allow users to use poison 3.0 by @Eein in #483
New Contributors
- @rolandtritsch made their first contribution in #447
- @natali-maximenko made their first contribution in #489
Full Changelog: v3.12.0...v3.13.0
v3.12.0
- Docs: Solve Issue #396 by @pxp9 in #397
- Docs: Clarify controller example by @tfwright in #405
- Fix: Consider one-shot additionalProperties in .decode() by @zoten in #413
- Fix: Casting Encoding without style field by @juantascon in #395
- Fix: Adds responses dereferencing by @riccardomanfrin in #400
- Docs: Fix typos by @kianmeng in #414
- Enhancement: Implement Extendable protocol for all structs that can have extensions by @albertored in #415
- Fix: decode/1 function correctly populates the :extensions field of structs by @albertored in #416
- Fix: Allow empty schemas to be validated as wildcards by @zoten in #419
- Docs: Fix schema example minor syntax issues (#431) by @rogerweb in #433
- Enhancement: Bump swagger_ui version to 4.6.2 by @zorbash in #437
- Enhancement: Implement flag to omit vendor extensions in mix openapi.spec.json by @zorbash in #439
- Enhancement: Generate examples for UUID formatted strings by @zorbash in #444
- Enhancement: Format code with mix format by @zorbash in #449
- Docs: Fix typo in result of JsonErrorResponse.response() by @gianluca-nitti in #448
- Fix: Avoids overwriting Plug.Conn body_params and params with the cast outcome by @albertored in #425
- Enhancement: Multiple content types by @moxley in #451
- Fix: llow empty content for Response by @MichalDolata in #453
- Infrastructure: Improve CI pipeline by @lucacorti in #377
- Fix: upport RequestBody passed to operation macro by @Geekfish in #456
- Enhancement: Allow extensions in all OpenApi structures by @albertored in #438
- Enhancement: ast parameters with json content-type by @albertored in #445
- Docs: Code formatting in README by @zorbash in #459
- Validate :integer type format by @wingyplus in #465
- Fix: Do not accepting float number in integer type by @wingyplus in #468
- Fix: anyOf cast crash when Cast.cast return a struct by @wingyplus in #469
- Fix: Decoding of discriminators when
type: object
is present by @albertored in #471 - Fix: Correctly cast not map bodies (plug puts them under _json key) by @albertored in #470
- Enhancement: Add YAML formatter #463 by @lazebny in #464
- Enhancement: use cache adapter at runtime instead of compile time for PutApiSpec by @Eein in #461
- Infrastructure: Build and publish a hex.pm package automatically by @zorbash in #474
Full Changelog: v3.11.0...v3.12.0
v3.11.0
- Docs: Fix Application.spec/2 example in README #344
- Docs: Misc doc changes (#355)
- Docs: JsonApiErrorResponse vs JsonErrorResponse (#385)
- Enhancement: Allow casting params where parameter.content schema is a Reference (#356)
- Enhancement: external_docs via controller
@doc
and@moduledoc
or ControllerSpecs DSL (#329) - Enhancement: Add optional header in opts to Operation.response (#332)
- Enhancement: Add callback support to operation_spec (#345)
- Enhancement: Adding helpers to OpenApiSpex.TestAssertions (#343)
- Enhancement: Collect all errors occurred during cast properties (#354)
- Enhancement: Add support for multiple specs for the same Phoenix router (#369)
- Enhancement: updated swagger-ui to 3.34.0 (#378)
- Fix casting additionalProperties (#386)
- Fix JsonErrorResponse schema definition (#383)
- Fix: test for cast of query parameters with style: form and explode: false (#364)
- Fix: any_of cast for multiple schemas (#366)
- Fix: Handle oneOf cast when there are multiple success along with failure (#362)
- Fix: Casting of additionalProperties with references (#360)
- Fix: Schema.example/1 for schema module (#358)
- Fix: Stop circular dependency by injecting the schema into list of already processed schemas (#352)
- Fix: Cast default for referenced schema (#337)
- Fix: don't json encode swagger-ui methods (#325)
- Fix: relax requirement on poison preventing version conflicts in library usage (#322)
- Fix: Allow top level security to apply to operations #321
- Fix: return error tuple when discriminator cast fails (#393)
- Infrastructure: Run Elixir CI with GitHub Actions (#347)
v3.10.0
- Feature: Support OAuth2 for swagger-ui (#217)
- Feature: Support
default
response type in responses (#301) - Feature: Allow overriding
x-struct
inOpenApiSpex.schema/1
(#304) - Feature: Ability to specify
deprecated
in ControllerSpec operation (#296) - Feature:
:struct?
and:derive?
options inOpenApiSpex.schema/1
(#312) - Feature:
OpenApiSpex.add_schemas/2
(#314) - Enhancement: Remove api_spec data from Conn (#286)
- Enhancement: More informative errors for bad schema (#288, #284, #287)
- Fix: Convert
:format
value to atom when decoding schema file (#293) - Fix: Type spec in OpenApiSpex.Info
- Fix: Elixir Formatter rules in published package (#306)
- Docs: Fix spelling error in example code (#295)
- Docs: Fix type in README (#297)
- Docs: Fix links and punctuation in README (#298)
- Docs: Promote ControlerSpecs as the preferred API for controller operations (#311