Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Dec 7, 2024
1 parent d621a60 commit 96ba386
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
10 changes: 4 additions & 6 deletions tests/test_annotated.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,10 @@ def test_openapi_schema():
"requestBody": {
"content": {
"application/json": {
"schema": pydantic_ref_fix(
{
"$ref": "#/components/schemas/Payload",
"examples": [{"p": "test", "t": 42}],
}
)
"schema": pydantic_ref_fix({
"$ref": "#/components/schemas/Payload",
"examples": [{"p": "test", "t": 42}],
})
}
},
"required": True,
Expand Down
12 changes: 5 additions & 7 deletions tests/test_orm_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,11 @@ class Meta:
"type": "object",
"properties": {
"id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "ID"},
"onetoonefield": pydantic_ref_fix(
{
"title": "Onetoonefield",
"description": "",
"$ref": "#/$defs/Related",
}
),
"onetoonefield": pydantic_ref_fix({
"title": "Onetoonefield",
"description": "",
"$ref": "#/$defs/Related",
}),
"foreignkey": {
"title": "Foreignkey",
"allOf": [{"$ref": "#/$defs/Related"}],
Expand Down

0 comments on commit 96ba386

Please sign in to comment.