You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by RFC3986. Unless specified otherwise, relative references are resolved using the URLs defined in the Server Object as a Base URL. Note that these themselves MAY be relative to the referring document.
Because the required types for URLs in the Pydanic models are AnyURL, setting them to a relative URL (e.g. setting components -> securitySchemes -> OAuth2PasswordBearer -> flows -> password -> tokenUrl to auth/token) causes the following:
pydantic.error_wrappers.ValidationError:
invalid or missing URL scheme (type=value_error.url.scheme)
For example, this will fail to validate the OpenAPI specs generated by FastAPI when following the OAuth2 security tutorial.
The text was updated successfully, but these errors were encountered:
See 3.1.0 OpenAPI specification:
Because the required types for URLs in the Pydanic models are
AnyURL
, setting them to a relative URL (e.g. settingcomponents -> securitySchemes -> OAuth2PasswordBearer -> flows -> password -> tokenUrl
toauth/token
) causes the following:For example, this will fail to validate the OpenAPI specs generated by FastAPI when following the OAuth2 security tutorial.
The text was updated successfully, but these errors were encountered: