mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-01-05 00:51:07 -06:00
📝 Update ModelRead to ModelPublic documentation and examples (#885)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
@@ -99,7 +99,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"title": "Response Read Heroes Heroes Get",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -136,7 +136,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -172,7 +172,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -244,7 +244,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -297,8 +297,8 @@ def test_tutorial(clear_sqlmodel):
|
||||
),
|
||||
},
|
||||
},
|
||||
"HeroRead": {
|
||||
"title": "HeroRead",
|
||||
"HeroPublic": {
|
||||
"title": "HeroPublic",
|
||||
"required": ["name", "secret_name", "id"],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -102,7 +102,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"title": "Response Read Heroes Heroes Get",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -139,7 +139,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -175,7 +175,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -247,7 +247,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -300,8 +300,8 @@ def test_tutorial(clear_sqlmodel):
|
||||
),
|
||||
},
|
||||
},
|
||||
"HeroRead": {
|
||||
"title": "HeroRead",
|
||||
"HeroPublic": {
|
||||
"title": "HeroPublic",
|
||||
"required": ["name", "secret_name", "id"],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -102,7 +102,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"title": "Response Read Heroes Heroes Get",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -139,7 +139,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -175,7 +175,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -247,7 +247,7 @@ def test_tutorial(clear_sqlmodel):
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HeroRead"
|
||||
"$ref": "#/components/schemas/HeroPublic"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -300,8 +300,8 @@ def test_tutorial(clear_sqlmodel):
|
||||
),
|
||||
},
|
||||
},
|
||||
"HeroRead": {
|
||||
"title": "HeroRead",
|
||||
"HeroPublic": {
|
||||
"title": "HeroPublic",
|
||||
"required": ["name", "secret_name", "id"],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user