|
412 | 412 | }, |
413 | 413 | { |
414 | 414 | "$ref": "#/definitions/SubSchema" |
| 415 | + }, |
| 416 | + { |
| 417 | + "$ref": "#/definitions/OldSubSchema" |
415 | 418 | } |
416 | 419 | ] |
417 | 420 | }, |
|
451 | 454 | "SubSchema": { |
452 | 455 | "title": "The schema for the sub value.", |
453 | 456 | "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", |
454 | 486 | "properties": { |
455 | 487 | "path": { |
456 | 488 | "title": "The sub schema path.", |
|
467 | 499 | }, |
468 | 500 | "root-keys": { |
469 | 501 | "title": "The keys to apply the sub schema.", |
| 502 | + "description": "Please use `root` instead.", |
470 | 503 | "type": ["string", "null"], |
| 504 | + "deprecated": true, |
471 | 505 | "minLength": 1 |
472 | 506 | } |
473 | 507 | }, |
|
0 commit comments