Open DanielHabenicht opened 1 month ago
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?
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-22