Books

Okyline · 2026-05-30 21:58
StudioFree Java libFree Documentation & AIFree
Okyline symbols reference
@
Required
Field must be present
?
Nullable
Value can be null
{ , }
String Length
Min and max characters
(...)
Value Constraint
Number ranges or enums
~ ~
Format
Regex or built-in format
[ , ]
Array Size
Min and max elements
#
Key Field
Unique identifier
!
Uniqueness
No duplicate objects
Item Constraint
For array elements
1{
2 "$title": "Books",
3 "$oky": [{
4 "title|@ {2,100}|Title": "The Great Gatsby",
5 "status|@ ($STATUS)|Publication status": "PUBLISHED",
6 "format|@ ('PRINT','EBOOK')|Format": "PRINT",
7 "isbn|~$ISBN~|ISBN": "978-3-16-148410-0",
8
9 "$requiredIf status('PUBLISHED','SOLD_OUT')": ["isbn"],
10
11 "$appliedIf format('PRINT')": {
12 "cover|@ ('HARDCOVER','PAPERBACK')|Cover type": "PAPERBACK",
13 "weight|@ (50..750)|Weight in grams": 250,
14 "$else": {
15 "fileSize|@ (>0)|File size in MB": 2,
16 "fileFormat|@ ('PDF','EPUB','MOBI')|File format": "EPUB"
17 }
18 }
19 }],
20 "$format": {
21 "ISBN": "^(97(8|9))-\\d{1,5}-\\d{1,7}-\\d{1,6}-\\d$"
22 },
23 "$nomenclature": {
24 "STATUS": "DRAFT,PUBLISHED,SOLD_OUT"
25 }
26}