We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c0f752 + fdd18b0 commit c422953Copy full SHA for c422953
2 files changed
src/schemas/validation/schema.yaml
@@ -414,13 +414,23 @@ $defs:
414
then:
415
required:
416
- content
417
+ - if:
418
+ properties:
419
+ in:
420
+ const: path
421
+ then:
422
423
+ name:
424
+ $comment: 'see OAS 3.2.0 §4.8.2'
425
+ pattern: '^[^{}]+$'
426
- if:
427
properties:
428
in:
429
const: header
430
431
432
name:
433
+ $comment: 'see RFC9110 §5.1'
434
$ref: '#/$defs/token'
435
dependentSchemas:
436
schema:
tests/schema/fail/parameter-object-path-name.yaml
@@ -0,0 +1,10 @@
1
+openapi: 3.2.0
2
+info:
3
+ title: path parameter name has a constrained syntax
4
+ version: 1.0.0
5
+components:
6
+ parameters:
7
+ BadPath:
8
+ name: 'Bad{Path}'
9
+ in: path
10
+ schema: {}
0 commit comments