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
{{ message }}
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
Notice the body schema seems fine, but the return is typed Any. This is generated from:
@post()asyncdefreceive_push(
data: WriteDTO,
service: Service,
provider_id: UUID=Parameter(header="X-PROVIDER-ID"),
) ->ReadDTO:
"""Push an object to this route, with a `"data"` key that contains your data. Example: {"data": [{"your": "valid"}, ["json"]} """returnReadDTO.from_orm(awaitservice.create(Push(provider_id=provider_id, data=data.data)))
At first I was wondering if the use of the generic syntax in FromMapped was causing it, but in the above example, the dto instances are both plain pydantic models:
classReadDTO(BaseModel):
"""The representation of a push that we send back."""classConfig:
"""Blah."""orm_mode=Trueprovider_id: UUIDclassWriteDTO(BaseModel):
"""The representation of the push that we require."""data: Any
I'm also getting this from an application that is using the FromMapped for type annotations:
I just haven't been able to prioritize the time to look at either of these things yet, as the issue seems to be contained to docs.
Good to know you are experiencing also, I'll up the urgency on looking into it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The generated schema for the health endpoint seems to be null while it should follows
settings.AppSetting
model.The text was updated successfully, but these errors were encountered: