We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HttpSecurityScheme
The generated OpenAPI schema is invalid if the bearer_format option is specified:
bearer_format
QuartSchema( app, security=[{"bearerAuth": []}], security_schemes={"bearerAuth": {"type": "http", "bearer_format": "JWT", "scheme": "bearer"}}, ) # because of @dataclass class HttpSecurityScheme(SecuritySchemeBase): scheme: str bearer_format: Optional[str] = None type: Literal["http"] = "http"
Resulting Schema:
// ... "securitySchemes": { "bearerAuth": { "bearer_format": "JWT", "scheme": "bearer", "type": "http" } }
It should be bearerFormat as specified: https://spec.openapis.org/oas/v3.1.0#fixed-fields-22
bearerFormat
The text was updated successfully, but these errors were encountered:
Should I make a PR where the attribute is aliased?
@dataclass class HttpSecurityScheme(SecuritySchemeBase): scheme: str bearer_format: Optional[str] = Field(None, alias='bearerFormat') type: Literal["http"] = "http"
Or do you want to handle it centrally for all attributes?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The generated OpenAPI schema is invalid if the
bearer_format
option is specified:Resulting Schema:
It should be
bearerFormat
as specified: https://spec.openapis.org/oas/v3.1.0#fixed-fields-22The text was updated successfully, but these errors were encountered: