Skip to content

Commit

Permalink
fix(schema): fix typo on the code source example
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Lenzotti <[email protected]>
  • Loading branch information
Romakita committed Mar 2, 2024
1 parent c664325 commit 1222dca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/specs/schema/src/decorators/common/defaultMsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {ErrorMsg} from "./errorMsg";
* ## Example
*
* ```typescript
* @DefaultMessage("foo should be a string")
* @DefaultMsg("foo should be a string")
* class Model {
* property: number;
* }
Expand Down
4 changes: 1 addition & 3 deletions packages/specs/schema/src/decorators/common/errorMsg.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import {JsonEntityFn} from "./jsonEntityFn";

/**
* Create a new custom formats validator
* @param name
* @param options
* Add an error message to the property.
* @decorator
* @ajv
*/
Expand Down

0 comments on commit 1222dca

Please sign in to comment.