Optional
exclusiveWhat kind of tag is this?
Optional
schemaAdditional schema info assigned to the IJsonSchema object.
Target type.
If user tries to adapt this tag to a different type, it would be a compile error.
For example, you've configured target type as string
, but user adapted
it onto a number
type (number & YourCustomTag<Value>
), then it would
be blocked by TypeScript compiler.
Optional
validateValidation script.
This script would be inserted into the generated validation function. In
here script, target variable name must be $input
. The variable name
$input
would be transformed to the suitable when compilation.
Also, If you've take a mistake on this script, compile error would be occurred. So, define it with confidence. Compiler will block all your mistakes.
Value to be configured by user.
Properties interface for validation tags.
Author
Jeongho Nam - https://github.com/samchon