Skip to content

Commit 2f222c8

Browse files
GromNaNfabpot
authored andcommitted
[DependencyInjection] Improve services.schema.json
1 parent 91f8966 commit 2f222c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Loader/schema/services.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"description": "Defines application-wide parameters.",
3131
"$comment": "Values support scalars, arrays and objects.",
3232
"patternProperties": {
33-
"^.*$": { "$ref": "#/$defs/parameterValue" }
33+
"^.+$": { "$ref": "#/$defs/parameterValue" }
3434
},
3535
"additionalProperties": false
3636
},
@@ -203,7 +203,7 @@
203203
]
204204
},
205205
"serviceShortSyntax": {
206-
"$comment": "Short syntax: service defined as arguments array. YAML example: my.service: ['@dependency', 'literal', 123]",
206+
"$comment": "Short syntax: service defined as arguments array. YAML example: App\\SomeService: ['@dependency', 'literal', 123]",
207207
"type": "array",
208208
"items": { "$ref": "#/$defs/parameterValue" }
209209
},

0 commit comments

Comments
 (0)