Skip to content

Commit bdacb5d

Browse files
committed
add pattern to all example properties
1 parent e45ca6a commit bdacb5d

File tree

1 file changed

+4
-2
lines changed
  • sources/platform/actors/development/actor_definition/input_schema

1 file changed

+4
-2
lines changed

sources/platform/actors/development/actor_definition/input_schema/specification.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,16 @@ Example of date selection using absolute and relative `datepicker` editor:
197197
"type": "string",
198198
"description": "Select relative date in format +/- {number} {unit}",
199199
"editor": "datepicker",
200-
"dateType": "relative"
200+
"dateType": "relative",
201+
"pattern": "^([+-])\\s*(\\d+)\\s*(day|week|month|year)s?$"
201202
},
202203
"anyDate": {
203204
"title": "Any date",
204205
"type": "string",
205206
"description": "Select date in format YYYY-MM-DD or +/- {number} {unit}",
206207
"editor": "datepicker",
207-
"dateType": "absoluteOrRelative"
208+
"dateType": "absoluteOrRelative",
209+
"pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$|^([+-])\\s*(\\d+)\\s*(day|week|month|year)s?$"
208210
}
209211
}
210212
```

0 commit comments

Comments
 (0)