Skip to content

Commit

Permalink
fix: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielarking authored and provinzkraut committed Feb 3, 2024
1 parent 917cf9a commit 482ddca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion litestar/_openapi/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ def create_error_responses(exceptions: list[type[HTTPException]]) -> Iterator[tu
"status_code": Schema(type=OpenAPIType.INTEGER),
"detail": Schema(type=OpenAPIType.STRING),
"extra": Schema(
any_of=[Schema(type=OpenAPIType.NULL), Schema(type=OpenAPIType.OBJECT), Schema(type=OpenAPIType.ARRAY, items=Schema())],
any_of=[
Schema(type=OpenAPIType.NULL),
Schema(type=OpenAPIType.OBJECT),
Schema(type=OpenAPIType.ARRAY, items=Schema())
],
additional_properties=Schema(),
),
},
Expand Down

0 comments on commit 482ddca

Please sign in to comment.