📝 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

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

View File

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

View File

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

View File

@@ -169,7 +169,7 @@ def test_tutorial(clear_sqlmodel):
"title": "Response Read Heroes Heroes Get",
"type": "array",
"items": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
},
}
}
@@ -206,7 +206,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -242,7 +242,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -286,7 +286,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -340,8 +340,8 @@ def test_tutorial(clear_sqlmodel):
"password": {"type": "string", "title": "Password"},
},
},
"HeroRead": {
"title": "HeroRead",
"HeroPublic": {
"title": "HeroPublic",
"required": ["name", "secret_name", "id"],
"type": "object",
"properties": {

View File

@@ -172,7 +172,7 @@ def test_tutorial(clear_sqlmodel):
"title": "Response Read Heroes Heroes Get",
"type": "array",
"items": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
},
}
}
@@ -209,7 +209,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -245,7 +245,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -289,7 +289,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -343,8 +343,8 @@ def test_tutorial(clear_sqlmodel):
"password": {"type": "string", "title": "Password"},
},
},
"HeroRead": {
"title": "HeroRead",
"HeroPublic": {
"title": "HeroPublic",
"required": ["name", "secret_name", "id"],
"type": "object",
"properties": {

View File

@@ -172,7 +172,7 @@ def test_tutorial(clear_sqlmodel):
"title": "Response Read Heroes Heroes Get",
"type": "array",
"items": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
},
}
}
@@ -209,7 +209,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -245,7 +245,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -289,7 +289,7 @@ def test_tutorial(clear_sqlmodel):
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HeroRead"
"$ref": "#/components/schemas/HeroPublic"
}
}
},
@@ -343,8 +343,8 @@ def test_tutorial(clear_sqlmodel):
"password": {"type": "string", "title": "Password"},
},
},
"HeroRead": {
"title": "HeroRead",
"HeroPublic": {
"title": "HeroPublic",
"required": ["name", "secret_name", "id"],
"type": "object",
"properties": {