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
fromfastapiimportFastAPIimportjsonfromtypingimportAnnotatedfrompydanticimportRootModel, FieldclassEuler3(RootModel[Annotated[list[float], Field(min_length=3, max_length=3)]]):
"""Euler angles in degrees"""classQuaternion(RootModel[Annotated[list[float], Field(min_length=4, max_length=4)]]):
"""Orientation defined by quaternion XYZW. It should be normalized."""classRotation(RootModel[Euler3|Quaternion]):
"""Rotation in 3D world"""app=FastAPI(
title="Test",
)
@app.post("/rotation")asyncdefrotation(r: Rotation) ->Rotation:
returnRotationschema=app.openapi()
if__name__=="__main__":
importsysjson.dump(app.openapi(), sys.stdout)
Describe the bug
When array type is nested under anyOf it is rendered in quite a raw state, no description is shown at all.
Expected behavior
Description of currently selected array should be visible.
Minimal reproducible OpenAPI snippet(if possible)
Api file:
api.json
Generated with Python script
Screenshots
ReDoc view generated by https://redocly.github.io/redoc/:
For reference, view generated with swagger keeps the descriptions: https://editor.swagger.io/
Additional context
I've tried with explicit
hideOneOfDescription = false
, no change.The text was updated successfully, but these errors were encountered: