Merge upstream open_api_spex master - #6
Merged
Merged
Conversation
aspett-remote
commented
Aug 18, 2026
Collaborator
- Bump CI dependencies (Bump CI dependencies open-api-spex/open_api_spex#655)
- Add examples property to Schema (Add examples property to Schema open-api-spex/open_api_spex#654)
- Document schema resolver duplicate titles behaviour (Document schema resolver duplicate titles behaviour open-api-spex/open_api_spex#656)
- Add spec.yaml tasks to example applications (Add spec.yaml tasks to example applications open-api-spex/open_api_spex#657)
- Fix 1.18 compilation warnings (Fix 1.18 compilation warnings open-api-spex/open_api_spex#665)
- Check for ex_doc warnings in CI and bump devtest deps (Check for ex_doc warnings in CI and bump devtest deps open-api-spex/open_api_spex#666)
- Test array query params in example phoenix app (Test array query params in example phoenix app open-api-spex/open_api_spex#667)
- Release 3.21.3
- Fix OTP-28 support (Fix OTP-28 support open-api-spex/open_api_spex#672)
- Release version 3.21.4
- Fix assert_operation_response/2 references (Fix assert_operation_response/2 references open-api-spex/open_api_spex#673)
- Release version 3.21.5
- Support multiple apps in Plug.SwaggerUI (Support multiple apps in Plug.SwaggerUI open-api-spex/open_api_spex#676)
- Validate keys given to operation/2 macro (Validate keys given to operation/2 macro open-api-spex/open_api_spex#675)
- Release version 3.22.0
- Fix elixir 1.19 support (Fix elixir 1.19 support open-api-spex/open_api_spex#685)
- Release version 3.22.1
- fix: type warnings Elixir 1.19 (fix: type warnings Elixir 1.19 open-api-spex/open_api_spex#693)
- Release version 3.22.2
- chore: removed unused require(s) (chore: removed unused require(s) open-api-spex/open_api_spex#700)
- Relax decimal requirement (Relax decimal requirement open-api-spex/open_api_spex#702)
- Release version 3.22.3
- Make layout configurable in Swagger UI (Make layout configurable in Swagger UI open-api-spex/open_api_spex#704)
* 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.
Merges origin/master (open-api-spex/open_api_spex) into the remoteoss
fork. 23 upstream commits; 3 files conflicted.
Conflict resolutions:
* lib/open_api_spex/inspect/for_schema.ex - took upstream. Both sides
independently fixed the Elixir 1.19 Inspect.Map breakage; upstream
version-gates inspect_as_struct/5 vs inspect/4, the fork switched to
concat/to_doc. test/inspect/for_schema_test.exs (identical on both
branches) asserts the `%OpenApiSpex.Schema{...}` format, which only
upstream's version produces. This drops fork commit 0560348.
* lib/open_api_spex/schema_resolver.ex - kept the fork's clauses, which
are a superset: {mod, func} schema references with the
title-must-be-defined raise, plus tuple discriminator mappings. Both
now layer on top of upstream's duplicate-title dedupe.
* test/schema_resolver_test.exs - rebuilt from upstream (which wraps the
tests in `describe "resolve_schema_modules/1"`, re-indenting them) and
re-applied the fork's three additions at the new indentation: the
/api/credit-cards path, the nail_clipping discriminator assertion, and
"CreditCardNumber" in the components.schemas assertion. The automatic
merge had misaligned this file outside the conflict markers.
mix test: 400 passed. mix format --check-formatted: ok.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
rafaels88
approved these changes
Aug 18, 2026
aspett-remote
marked this pull request as ready for review
August 18, 2026 23:46
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.