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

OAS 3.1 "const" keyword support? #1223

Closed
SXHRYU opened this issue Apr 17, 2024 · 1 comment
Closed

OAS 3.1 "const" keyword support? #1223

SXHRYU opened this issue Apr 17, 2024 · 1 comment

Comments

@SXHRYU
Copy link

SXHRYU commented Apr 17, 2024

OAI/OpenAPI-Specification#1977 introduced support for JSON Schema Draft 2019-09, which has introduced const keyword.

drf-spectacular docs say "We now also support 3.1.0", so I wonder if const keyword generated in schema is supported and how to force schema to generate it?

Is it possible to introduce this keyword through custom extension?

@tfranzel
Copy link
Owner

tfranzel commented Apr 17, 2024 via email

@SXHRYU SXHRYU closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants