Skip to content

Commit

Permalink
Task: mode details on types
Browse files Browse the repository at this point in the history
  • Loading branch information
jairojair committed Sep 8, 2018
1 parent f0eee43 commit 7303c8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions models/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class FeatureType(types.Type):

id = validators.String(max_length=100)
version = validators.String(max_length=100)
id = validators.String(max_length=100, description="Feature name.")
version = validators.String(pattern="^[0-9].[0-9].[0-9]$", description="The feature version.")


class FeatureUpdateType(types.Type):
Expand Down
4 changes: 2 additions & 2 deletions models/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

class ServiceType(types.Type):

name = validators.String(max_length=100)
description = validators.String(max_length=100)
name = validators.String(max_length=30, description="The service name.")
description = validators.String(max_length=100, description="The service description.")


class Service(Model):
Expand Down
2 changes: 1 addition & 1 deletion models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class UserType(types.Type):

username = validators.String(max_length=100, description="The username is unique.")
username = validators.String(max_length=30, description="The username is unique.")
password = validators.String(max_length=30, description="The user password.")


Expand Down

0 comments on commit 7303c8c

Please sign in to comment.