File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,11 @@ class JSONAPIResultListMetaSchema(BaseModel):
4444 total_pages : Optional [int ] = Field (alias = "totalPages" )
4545
4646
47- class JSONAPIResultListJSONAPISchema (BaseModel ):
48- """JSON:API result list schema."""
47+ class JSONAPIDocumentObjectSchema (BaseModel ):
48+ """
49+ JSON:API Document Object Schema.
50+ https://jsonapi.org/format/#document-jsonapi-object
51+ """
4952
5053 version : str = Field (default = "1.0" , description = "json-api версия" )
5154
@@ -60,7 +63,7 @@ class BaseJSONAPIResultSchema(BaseModel):
6063 """
6164
6265 meta : Optional [JSONAPIResultListMetaSchema ] = Field (description = "Meta данные json-api" )
63- jsonapi : JSONAPIResultListJSONAPISchema = JSONAPIResultListJSONAPISchema ()
66+ jsonapi : JSONAPIDocumentObjectSchema = JSONAPIDocumentObjectSchema ()
6467
6568
6669class JSONAPIResultListSchema (BaseJSONAPIResultSchema ):
You can’t perform that action at this time.
0 commit comments