Sync with upstream open_api_spex (through v3.22.3)#4
Merged
Conversation
…open-api-spex#550) * Fix deprecation warning on Elixir 1.15 * Stop testing against Elixir 1.10 * Require Elixir 1.11+ now * Update CHANGELOG.md
…-api-spex#552) Co-authored-by: Gianluca Nitti <gianluca.nitti@voismart.it>
…#545) * feat: add assert_operation_response, assert_raw_schema * make assert_operation_response pipeable * fix return type * automagically infer operationId in assertion * don't need to resolve a %Schema{} * ignore 204s * use OpenApiSpex.OpenApi.json_encoder() * rename test to match fn * reorganize json_encoder check per feedback * update json_encoder message for :jason or :poison * use a regex to match json content types in validate_operation_response * 💅 feedback - types, error message, module attrib for regex * add doc for content_type_from_header * remove no_return from spec
Co-authored-by: Alberto Sartori <alberto.sartori@hpe.com>
* Exclude empty paths from spec
* fix: assert_operation_response header lookup
…x#592) * Add failing test * Cast result of AllOf cast into a struct * Shorter module name
…-spex#586) * relax dependency on ymlr, and fix some tests * test with more elixir versions
* Update Elixir version test matrix * Fix map key order dependent test
…g cast and validate plug (open-api-spex#589)
…pex#593) * Allow script and style nonces * Allow nonces on the SwaggerUIOAuth2Redirect plug as well
…#606) * fix: ensure operation_id is always set on conn.private when an operation is known
* Fix cast x-validate when decoded schema * fix credo complain when using apply/3 --------- Co-authored-by: Giorgio Torres <giorgio.torres@hpe.com>
* Add mix spec.yaml tasks in example applications * Update example application dependencies
* Fix Elixir 1.18 compilation warnings * Test against 1.18
* Refactor: Update default parsers and schema pattern definitions This commit introduces changes to `OpenApiSpex.CastParameters` and `OpenApiSpexTest.Schemas`. - Moved `@default_parsers` to a private function `default_parsers/0` in `OpenApiSpex.CastParameters` to ensure it's evaluated at runtime, preventing potential compilation issues with `OpenApi.json_encoder()`. - Updated the `pattern` definition in `OpenApiSpexTest.Schemas` to use a string literal instead of a regex literal for consistency and to avoid potential issues with regex compilation. Fix: Adjust string pattern test assertion Following the refactoring, a test in `OpenApiSpex.CastStringTest` failed due to a change in how regex patterns were handled. This fix corrects the assertion for string pattern matching to compare the `source` of the regex instead of the regex struct directly, resolving the test failure. * Fix formatting --------- Co-authored-by: Dimitris Zorbas <dimitrisplusplus@gmail.com>
* Support references in assert_operation_response/2 * fixup! Support references in assert_operation_response/2
A new release will be out soon, this will allow users to migrate if desired. The new version is compatible with OpenAPISpex.
hidnasio
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/elixir.yml: kept our SHA-pinned action versions (actions/checkout@de0f...,actions/cache@cdf6c1...) and accepted upstream OTP/Elixir version bumps in thetest_examplesjob (24/1.13 → 26/1.16)Notable upstream changes
assert_operation_response/2, OTP-28, dialyzer)Test plan