-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename preload stubs directory name
- Loading branch information
1 parent
4a8643d
commit a6ab2f4
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{#var validatorFileName = generators.validatorFileName(entity.name)}} | ||
{{{ | ||
exports({ | ||
to: app.validatorsPath(entity.path, validatorFileName) | ||
}) | ||
}}} | ||
import vine from '@vinejs/vine' | ||
|
||
/** | ||
* Validator to validate the payload when creating | ||
* a new {{ entity.name }}. | ||
*/ | ||
export const create{{ entity.name }}Validator = vine.compile( | ||
vine.object({}) | ||
) | ||
|
||
/** | ||
* Validator to validate the payload when updating | ||
* an existing {{ entity.name }}. | ||
*/ | ||
export const update{{ entity.name }}Validator = vine.compile( | ||
vine.object({}) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters