Link / BackLink and OpenAPI schema #751
JulioBarros
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying Beanie with FastAPI and would like to use the OpenAPI feature with Links and BackLinks. My project has an "org" which each have several separate "projects". When I try to use a Link / BackLink relationship and try to generate the Json Schema from FastAPI I get the error below.
I'm using pydantic 2.4.2, beanie 1.22.6, fastapi 0.103.2
Roman asked me to file a feature request in discord.
Thanks.
raise PydanticInvalidForJsonSchema(f'Cannot generate a JsonSchema for {error_info}')
pydantic.errors.PydanticInvalidForJsonSchema: Cannot generate a JsonSchema for core_schema.PlainValidatorFunctionSchema ({'type': 'with-info', 'function': <function BackLink.build_validation..validate at 0x1164f6d40>})
Beta Was this translation helpful? Give feedback.
All reactions