Skip to content

Commit 325ed71

Browse files
ya7010yassun7010
andauthored
Update: tombi schema (SchemaStore#4717)
Co-authored-by: yassun7010 <[email protected]>
1 parent 9d8c1aa commit 325ed71

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/schemas/json/tombi.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@
412412
},
413413
{
414414
"$ref": "#/definitions/SubSchema"
415+
},
416+
{
417+
"$ref": "#/definitions/OldSubSchema"
415418
}
416419
]
417420
},
@@ -451,6 +454,35 @@
451454
"SubSchema": {
452455
"title": "The schema for the sub value.",
453456
"type": "object",
457+
"properties": {
458+
"path": {
459+
"title": "The sub schema path.",
460+
"type": "string"
461+
},
462+
"include": {
463+
"title": "The file match pattern of the sub schema.",
464+
"description": "The file match pattern to include the target to apply the sub schema.\n Supports glob pattern.",
465+
"type": "array",
466+
"items": {
467+
"type": "string"
468+
},
469+
"minItems": 1
470+
},
471+
"root": {
472+
"title": "The accessors to apply the sub schema.",
473+
"type": ["string", "null"],
474+
"examples": ["tools.tombi", "items[0].name"],
475+
"minLength": 1
476+
}
477+
},
478+
"additionalProperties": false,
479+
"required": ["path", "include"],
480+
"x-tombi-table-keys-order": "schema"
481+
},
482+
"OldSubSchema": {
483+
"title": "The schema for the old sub value.",
484+
"description": "This is for backward compatibility.",
485+
"type": "object",
454486
"properties": {
455487
"path": {
456488
"title": "The sub schema path.",
@@ -467,7 +499,9 @@
467499
},
468500
"root-keys": {
469501
"title": "The keys to apply the sub schema.",
502+
"description": "Please use `root` instead.",
470503
"type": ["string", "null"],
504+
"deprecated": true,
471505
"minLength": 1
472506
}
473507
},

0 commit comments

Comments
 (0)