@atscript/core 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10962,13 +10962,13 @@ const metaAnnotations = {
|
|
|
10962
10962
|
passedWhenReferred: false
|
|
10963
10963
|
}),
|
|
10964
10964
|
required: new AnnotationSpec({
|
|
10965
|
-
description: annotationExample("Marks a field as required for form validation. For strings: must contain at least one non-whitespace character. For booleans: must be true. On an optional field (`name?: string`) the field may be omitted, but `null` is rejected. On a nullable field (`string | null`) `null` is accepted and a string must not be empty.", "@meta.required", "name: string", "", "@meta.required \"You must accept the terms\"", "agreed: boolean"),
|
|
10965
|
+
description: annotationExample("Marks a field as required for form validation. For strings: must contain at least one non-whitespace character. For booleans: must be true. A non-optional field that is missing, or `null` where its type does not accept `null`, fails the same way (code `REQUIRED`, `REQUIRED_CHECKED` for booleans, and the message). On an optional field (`name?: string`) the field may be omitted, but `null` is rejected. On a nullable field (`string | null`) `null` is accepted and a string must not be empty.", "@meta.required", "name: string", "", "@meta.required \"You must accept the terms\"", "agreed: boolean"),
|
|
10966
10966
|
defType: ["string", "boolean"],
|
|
10967
10967
|
argument: [{
|
|
10968
10968
|
name: "message",
|
|
10969
10969
|
optional: true,
|
|
10970
10970
|
type: "string",
|
|
10971
|
-
description: "Optional error message to display if the
|
|
10971
|
+
description: "Optional error message to display if the value is missing, empty or (booleans) not true.",
|
|
10972
10972
|
userText: true
|
|
10973
10973
|
}],
|
|
10974
10974
|
passedWhenReferred: false
|
package/dist/index.mjs
CHANGED
|
@@ -10931,13 +10931,13 @@ const metaAnnotations = {
|
|
|
10931
10931
|
passedWhenReferred: false
|
|
10932
10932
|
}),
|
|
10933
10933
|
required: new AnnotationSpec({
|
|
10934
|
-
description: annotationExample("Marks a field as required for form validation. For strings: must contain at least one non-whitespace character. For booleans: must be true. On an optional field (`name?: string`) the field may be omitted, but `null` is rejected. On a nullable field (`string | null`) `null` is accepted and a string must not be empty.", "@meta.required", "name: string", "", "@meta.required \"You must accept the terms\"", "agreed: boolean"),
|
|
10934
|
+
description: annotationExample("Marks a field as required for form validation. For strings: must contain at least one non-whitespace character. For booleans: must be true. A non-optional field that is missing, or `null` where its type does not accept `null`, fails the same way (code `REQUIRED`, `REQUIRED_CHECKED` for booleans, and the message). On an optional field (`name?: string`) the field may be omitted, but `null` is rejected. On a nullable field (`string | null`) `null` is accepted and a string must not be empty.", "@meta.required", "name: string", "", "@meta.required \"You must accept the terms\"", "agreed: boolean"),
|
|
10935
10935
|
defType: ["string", "boolean"],
|
|
10936
10936
|
argument: [{
|
|
10937
10937
|
name: "message",
|
|
10938
10938
|
optional: true,
|
|
10939
10939
|
type: "string",
|
|
10940
|
-
description: "Optional error message to display if the
|
|
10940
|
+
description: "Optional error message to display if the value is missing, empty or (booleans) not true.",
|
|
10941
10941
|
userText: true
|
|
10942
10942
|
}],
|
|
10943
10943
|
passedWhenReferred: false
|