Skip to content

Commit 199e6d3

Browse files
authored
id should be string
1 parent 998975a commit 199e6d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi_rest_jsonapi/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BasePostJSONAPISchema(BaseJSONAPIItemSchema):
3333
class BaseJSONAPIObjectSchema(BaseJSONAPIItemSchema):
3434
"""Base JSON:API object schema."""
3535

36-
id: int = Field(description="ID объекта")
36+
id: str = Field(description="ID объекта")
3737

3838

3939
class BasePatchJSONAPISchema(BaseJSONAPIObjectSchema):

0 commit comments

Comments
 (0)