Skip to content

Commit b319c36

Browse files
committed
feat(metadata): enhance metadata schemas with additional formats and options
1 parent e975c20 commit b319c36

12 files changed

Lines changed: 143 additions & 15 deletions

content/docs/meta.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"objectui",
99
"objectos",
1010
"---",
11-
"automation",
12-
"ai",
13-
"hub",
14-
"---",
1511
"references"
1612
]
1713
}

packages/spec/json-schema/system/MetadataExportOptions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
"yaml",
2828
"yml",
2929
"ts",
30-
"js"
30+
"js",
31+
"typescript",
32+
"javascript"
3133
],
3234
"default": "json"
3335
}

packages/spec/json-schema/system/MetadataFormat.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"yaml",
99
"yml",
1010
"ts",
11-
"js"
11+
"js",
12+
"typescript",
13+
"javascript"
1214
]
1315
}
1416
},

packages/spec/json-schema/system/MetadataLoadOptions.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@
2222
"cache": {
2323
"type": "boolean",
2424
"default": true
25+
},
26+
"useCache": {
27+
"type": "boolean"
28+
},
29+
"validate": {
30+
"type": "boolean"
31+
},
32+
"ifNoneMatch": {
33+
"type": "string"
34+
},
35+
"recursive": {
36+
"type": "boolean"
37+
},
38+
"limit": {
39+
"type": "number"
40+
},
41+
"patterns": {
42+
"type": "array",
43+
"items": {
44+
"type": "string"
45+
}
2546
}
2647
},
2748
"additionalProperties": false

packages/spec/json-schema/system/MetadataLoadResult.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
},
2121
"hash": {
2222
"type": "string"
23+
},
24+
"etag": {
25+
"type": "string"
26+
},
27+
"modifiedAt": {
28+
"type": "string",
29+
"format": "date-time"
2330
}
2431
},
2532
"additionalProperties": false
@@ -31,11 +38,19 @@
3138
"yaml",
3239
"yml",
3340
"ts",
34-
"js"
41+
"js",
42+
"typescript",
43+
"javascript"
3544
]
3645
},
3746
"source": {
3847
"type": "string"
48+
},
49+
"fromCache": {
50+
"type": "boolean"
51+
},
52+
"etag": {
53+
"type": "string"
3954
}
4055
},
4156
"additionalProperties": false

packages/spec/json-schema/system/MetadataLoaderContract.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"description": {
1414
"type": "string"
1515
},
16+
"supportedFormats": {
17+
"type": "array",
18+
"items": {
19+
"type": "string"
20+
}
21+
},
1622
"capabilities": {
1723
"type": "object",
1824
"properties": {

packages/spec/json-schema/system/MetadataManagerConfig.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,26 @@
1717
},
1818
"basePath": {
1919
"type": "string"
20-
}
20+
},
21+
"rootDir": {
22+
"type": "string"
23+
},
24+
"formats": {
25+
"type": "array",
26+
"items": {
27+
"type": "string",
28+
"enum": [
29+
"json",
30+
"yaml",
31+
"yml",
32+
"ts",
33+
"js",
34+
"typescript",
35+
"javascript"
36+
]
37+
}
38+
},
39+
"watchOptions": {}
2140
},
2241
"required": [
2342
"loaders"

packages/spec/json-schema/system/MetadataSaveOptions.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"yaml",
1212
"yml",
1313
"ts",
14-
"js"
14+
"js",
15+
"typescript",
16+
"javascript"
1517
]
1618
},
1719
"create": {
@@ -24,6 +26,21 @@
2426
},
2527
"path": {
2628
"type": "string"
29+
},
30+
"prettify": {
31+
"type": "boolean"
32+
},
33+
"indent": {
34+
"type": "number"
35+
},
36+
"sortKeys": {
37+
"type": "boolean"
38+
},
39+
"backup": {
40+
"type": "boolean"
41+
},
42+
"atomic": {
43+
"type": "boolean"
2744
}
2845
},
2946
"additionalProperties": false

packages/spec/json-schema/system/MetadataSaveResult.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,19 @@
2525
},
2626
"hash": {
2727
"type": "string"
28+
},
29+
"etag": {
30+
"type": "string"
31+
},
32+
"modifiedAt": {
33+
"type": "string",
34+
"format": "date-time"
2835
}
2936
},
3037
"additionalProperties": false
38+
},
39+
"etag": {
40+
"type": "string"
3141
}
3242
},
3343
"required": [

packages/spec/json-schema/system/MetadataStats.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
},
1717
"hash": {
1818
"type": "string"
19+
},
20+
"etag": {
21+
"type": "string"
22+
},
23+
"modifiedAt": {
24+
"type": "string",
25+
"format": "date-time"
1926
}
2027
},
2128
"additionalProperties": false

0 commit comments

Comments
 (0)