Skip to content

Commit

Permalink
docs: fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mastermunj authored and raymondfeng committed Feb 12, 2020
1 parent 0ad903e commit ea8267a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/site/Model.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ class Product extends Entity {
jsonSchema: {
maxLength: 30,
minLength: 10,
errorMessage: 'name must be at least 10 characters and maximum 30 characters',
errorMessage:
'name must be at least 10 characters and maximum 30 characters',
},
})
public name: string;
Expand Down
7 changes: 4 additions & 3 deletions docs/site/Parsing-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ A full list of validation keywords could be found in the
##### Custom Error Messages

You can also specify custom error messages for the JSON schema validation rules
in the model property decorator. The messages are added in field called `errorMessage`
inside `jsonSchema` like:
in the model property decorator. The messages are added in field called
`errorMessage` inside `jsonSchema` like:

```ts
@model()
Expand All @@ -218,7 +218,8 @@ class Product extends Entity {
jsonSchema: {
maxLength: 30,
minLength: 10,
errorMessage: 'name must be at least 10 characters and maximum 30 characters',
errorMessage:
'name must be at least 10 characters and maximum 30 characters',
},
})
public name: string;
Expand Down

0 comments on commit ea8267a

Please sign in to comment.