generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: hiraginoyuki <[email protected]>
- Loading branch information
1 parent
6e4ecb5
commit baed11d
Showing
3 changed files
with
29 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { nullable, optional, string } from 'valibot' | ||
import { boolean, coerce, nullable, optional, string } from 'valibot' | ||
|
||
export const StringSchema = string() | ||
export const OptionalStringSchema = optional(string()) | ||
export const NullableStringSchema = nullable(string()) | ||
export const DryRunSchema = coerce( | ||
boolean('The dry-run option must be either "true" or "false".'), | ||
input => JSON.parse(`${input}`) | ||
) |