Skip to content
Permalink
Browse files

[#17] Category API Post schema의 name필드에 max_length 명시

  • Loading branch information...
JoMingyu committed Mar 12, 2019
1 parent 9787931 commit 83adab13e94d4dc66b973885b1b03da2a5f3297f
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/views/board/category.py
@@ -15,7 +15,8 @@ class Schema:
class Post(BaseModel):
name = StringType(
serialized_name='name',
required=True
required=True,
max_length=TblCategories.name.type.length
)

@validate_with_schematics(PayloadLocation.JSON, Schema.Post)

0 comments on commit 83adab1

Please sign in to comment.
You can’t perform that action at this time.