Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions src/Symfony/Component/Routing/Loader/schema/routing.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,48 @@
"locale": { "type": "string" },
"format": { "type": "string" },
"utf8": { "type": "boolean" },
"stateless": { "type": "boolean" }
"stateless": { "type": "boolean" },
"deprecated": {
"type": "object",
"properties": {
"package": { "type": "string" },
"version": { "type": "string" },
"message": { "type": "string" }
},
"required": ["package", "version"],
"additionalProperties": false
}
},
"required": ["path"],
"additionalProperties": false
},
"routeImport": {
"type": "object",
"properties": {
"resource": { "type": "string", "description": "Path to the resource to import." },
"resource": {
"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).",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } },
{
"type": "object",
"properties": {
"path": { "type": "string", "description": "The directory path to the resource." },
"namespace": { "type": "string", "description": "The namespace of the controllers in the imported resource (e.g., 'App\\Availability\\UserInterface\\Api')." }
},
"required": ["path"],
"additionalProperties": true
}
]
},
"type": {
"type": "string",
"description": "The type of the resource (e.g., 'attribute', 'annotation', 'yaml')."
},
"prefix": {
"oneOf": [
{ "type": "string" },
{ "type": "object", "patternProperties": { "^.+$": { "type": "string" } } }
{ "type": "object", "patternProperties": { "^.+$": { "type": "string" } }, "additionalProperties": false }
],
"description": "A URL prefix to apply to all routes from the imported resource."
},
Expand Down
Loading