Skip to content

feat: default to OpenAPI 3.2 (configurable down to 3.1 and 3.0)#372

Draft
exoego wants to merge 1 commit into
masterfrom
feat/openapi-3.2-support
Draft

feat: default to OpenAPI 3.2 (configurable down to 3.1 and 3.0)#372
exoego wants to merge 1 commit into
masterfrom
feat/openapi-3.2-support

Conversation

@exoego

@exoego exoego commented Jun 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

@exoego exoego added the enhancement New feature or request label Jun 27, 2026
# Keys whose values hold user data, not schemas. Their contents must never be
# rewritten, or a recorded example/default that happens to contain a field
# named `type` or `nullable` would be silently mangled.
DATA_KEYS = [:example, :examples, :default, :enum].freeze
return unless type.include?('null')

rest = type - ['null']
rest.empty? ? schema.delete(:type) : schema[:type] = (rest.one? ? rest.first : rest)
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.96992% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.73%. Comparing base (0842541) to head (caa57e7).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
lib/rspec/openapi/nullable_converter.rb 86.20% 1 Missing and 3 partials ⚠️
lib/rspec/openapi/stream_parser.rb 85.18% 0 Missing and 4 partials ⚠️
lib/rspec/openapi/operation_converter.rb 88.46% 0 Missing and 3 partials ⚠️
lib/rspec/openapi.rb 93.54% 0 Missing and 2 partials ⚠️
lib/rspec/openapi/schema_builder.rb 75.00% 0 Missing and 2 partials ⚠️
lib/rspec/openapi/default_schema.rb 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #372      +/-   ##
==========================================
- Coverage   92.33%   91.73%   -0.60%     
==========================================
  Files          23       26       +3     
  Lines         900     1029     +129     
  Branches      179      209      +30     
==========================================
+ Hits          831      944     +113     
- Misses         14       15       +1     
- Partials       55       70      +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@exoego exoego force-pushed the feat/openapi-3.2-support branch from 3e462ec to caa57e7 Compare June 27, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants