|
62 | 62 | "locale": { "type": "string" }, |
63 | 63 | "format": { "type": "string" }, |
64 | 64 | "utf8": { "type": "boolean" }, |
65 | | - "stateless": { "type": "boolean" } |
| 65 | + "stateless": { "type": "boolean" }, |
| 66 | + "deprecated": { |
| 67 | + "type": "object", |
| 68 | + "properties": { |
| 69 | + "package": { "type": "string" }, |
| 70 | + "version": { "type": "string" }, |
| 71 | + "message": { "type": "string" } |
| 72 | + }, |
| 73 | + "required": ["package", "version"], |
| 74 | + "additionalProperties": false |
| 75 | + } |
66 | 76 | }, |
67 | 77 | "required": ["path"], |
68 | 78 | "additionalProperties": false |
69 | 79 | }, |
70 | 80 | "routeImport": { |
71 | 81 | "type": "object", |
72 | 82 | "properties": { |
73 | | - "resource": { "type": "string", "description": "Path to the resource to import." }, |
| 83 | + "resource": { |
| 84 | + "description": "Path to the resource to import (commonly a string or {path, namespace}), array of paths, or custom value for loaders (additional properties allowed for extensions).", |
| 85 | + "oneOf": [ |
| 86 | + { "type": "string" }, |
| 87 | + { "type": "array", "items": { "type": "string" } }, |
| 88 | + { |
| 89 | + "type": "object", |
| 90 | + "properties": { |
| 91 | + "path": { "type": "string", "description": "The directory path to the resource." }, |
| 92 | + "namespace": { "type": "string", "description": "The namespace of the controllers in the imported resource (e.g., 'App\\Availability\\UserInterface\\Api')." } |
| 93 | + }, |
| 94 | + "required": ["path"], |
| 95 | + "additionalProperties": true |
| 96 | + } |
| 97 | + ] |
| 98 | + }, |
74 | 99 | "type": { |
75 | 100 | "type": "string", |
76 | 101 | "description": "The type of the resource (e.g., 'attribute', 'annotation', 'yaml')." |
77 | 102 | }, |
78 | 103 | "prefix": { |
79 | 104 | "oneOf": [ |
80 | 105 | { "type": "string" }, |
81 | | - { "type": "object", "patternProperties": { "^.+$": { "type": "string" } } } |
| 106 | + { "type": "object", "patternProperties": { "^.+$": { "type": "string" } }, "additionalProperties": false } |
82 | 107 | ], |
83 | 108 | "description": "A URL prefix to apply to all routes from the imported resource." |
84 | 109 | }, |
|
0 commit comments