Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting for Json Schema Draft 2020 and OpenAPI 3.1 #1071

Closed
Fares-Abubaker opened this issue Sep 11, 2023 · 2 comments
Closed

Supporting for Json Schema Draft 2020 and OpenAPI 3.1 #1071

Fares-Abubaker opened this issue Sep 11, 2023 · 2 comments
Labels
enhancement New feature or request fix confirmation pending issue has been fixed and confirmation from issue reporter is pending

Comments

@Fares-Abubaker
Copy link

Hello,

What exactly is the latest Json Schema Draft and OpenAPI supported?

@tfranzel
Copy link
Owner

Hi,

there is none. We are currently generating OpenAPI 3.0.3 which is not yet json schema compliant. Compliance starts with OpenAPI 3.1. We have not implemented it yet because upstream support was very slow to change and I have not found an elegant way to run the test suite against 2 versions yet. We will eventually support it though.

#825

@tfranzel tfranzel added enhancement New feature or request fix confirmation pending issue has been fixed and confirmation from issue reporter is pending labels Nov 30, 2023
@mateokurti mateokurti mentioned this issue Dec 18, 2023
@tfranzel tfranzel closed this as completed Jan 6, 2024
@tfranzel
Copy link
Owner

tfranzel commented Jan 6, 2024

#378 (comment)

As I said there, we now have support for OpenAPI 3.1. The generated schemas are valid against JSON Schema 2020-12, which is guaranteed by validation against:

https://github.com/tfranzel/drf-spectacular/blob/master/drf_spectacular/validation/openapi_3_1_schema.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix confirmation pending issue has been fixed and confirmation from issue reporter is pending
Projects
None yet
Development

No branches or pull requests

2 participants