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
Should create a valid SecuritySchemeData but instead raises this exception
pydantic.error_wrappers.ValidationError: 1 validation error for SecuritySchemeData
__root__
For `apiKey` type `name, field_in` field(s) is required. (type=value_error)
The spectree version
Name: spectree
Version: 1.2.3
Summary: generate OpenAPI document and validate request&response with Python annotations.
Home-page:
Author:
Author-email: Keming Yang [email protected]
License: Apache-2.0
Location: /Users/jkuperus/Library/Caches/pypoetry/virtualenvs/data-workflow-service-VxjL5469-py3.8/lib/python3.8/site-packages
Requires: pydantic
Required-by:
Darwin Jelmers-MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64
Python 3.8.10
Describe the bug
Impossible to create SecuritySchemeData with field_in field because of the alias="in" field on the pydantic field_in field
To Reproduce
Expected behavior
Should create a valid SecuritySchemeData but instead raises this exception
The spectree version
Name: spectree
Version: 1.2.3
Summary: generate OpenAPI document and validate request&response with Python annotations.
Home-page:
Author:
Author-email: Keming Yang [email protected]
License: Apache-2.0
Location: /Users/jkuperus/Library/Caches/pypoetry/virtualenvs/data-workflow-service-VxjL5469-py3.8/lib/python3.8/site-packages
Requires: pydantic
Required-by:
Darwin Jelmers-MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64
Python 3.8.10
Additional context
As a workaround you can do
The text was updated successfully, but these errors were encountered: