Skip to content

Commit 99d0a8e

Browse files
authored
Merge pull request #5300 from karenetheridge/ether/3.3-parameter-name-patterns
v3.3: apply the ABNF for path parameter names
2 parents b50b1ed + 4e80b2b commit 99d0a8e

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

src/schemas/validation/schema.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,23 @@ $defs:
414414
then:
415415
required:
416416
- content
417+
- if:
418+
properties:
419+
in:
420+
const: path
421+
then:
422+
properties:
423+
name:
424+
$comment: 'see OAS 3.3.0 §4.8.2'
425+
pattern: '^[^{}]+$'
417426
- if:
418427
properties:
419428
in:
420429
const: header
421430
then:
422431
properties:
423432
name:
433+
$comment: 'see RFC9110 §5.1'
424434
$ref: '#/$defs/token'
425435
dependentSchemas:
426436
schema:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
openapi: 3.3.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

Comments
 (0)