📝 Update ModelRead to ModelPublic documentation and examples (#885)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Esteban Maya
2024-04-08 18:07:48 -05:00
committed by GitHub
parent fa79856a4b
commit 1eb40b1f33
68 changed files with 427 additions and 427 deletions

View File

@@ -59,7 +59,7 @@ def test_tutorial(clear_sqlmodel):
"title": "Response Read Heroes Heroes Get",
"type": "array",
"items": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
},
}
}
@@ -86,7 +86,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -122,7 +122,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -175,8 +175,8 @@ def test_tutorial(clear_sqlmodel):
),
},
},
"HeroRead": {
"title": "HeroRead",
"HeroPublic": {
"title": "HeroPublic",
"required": ["name", "secret_name", "id"],
"type": "object",
"properties": {

View File

@@ -62,7 +62,7 @@ def test_tutorial(clear_sqlmodel):
"title": "Response Read Heroes Heroes Get",
"type": "array",
"items": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
},
}
}
@@ -89,7 +89,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -125,7 +125,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -178,8 +178,8 @@ def test_tutorial(clear_sqlmodel):
),
},
},
"HeroRead": {
"title": "HeroRead",
"HeroPublic": {
"title": "HeroPublic",
"required": ["name", "secret_name", "id"],
"type": "object",
"properties": {

View File

@@ -62,7 +62,7 @@ def test_tutorial(clear_sqlmodel):
"title": "Response Read Heroes Heroes Get",
"type": "array",
"items": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
},
}
}
@@ -89,7 +89,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -125,7 +125,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -178,8 +178,8 @@ def test_tutorial(clear_sqlmodel):
),
},
},
"HeroRead": {
"title": "HeroRead",
"HeroPublic": {
"title": "HeroPublic",
"required": ["name", "secret_name", "id"],
"type": "object",
"properties": {