Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"_format_version": "3.0",
"services": [
{
"host": "api.example.com",
"id": "62aa9ceb-0ca2-5c75-a775-e85bf8135fcb",
"name": "case-insensitive-header-test",
"path": "/",
"plugins": [],
"port": 443,
"protocol": "https",
"routes": [
{
"headers": {
"X-Region": [
"us-east"
]
},
"id": "b6e83bfa-aa2c-5196-82a9-a23d2e28764c",
"methods": [
"GET"
],
"name": "case-insensitive-header-test_get-regions_0",
"paths": [
"~/regions$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_30-routes-with-headers-case-insensitive.yaml"
]
},
{
"headers": {
"X-Region": [
"us-west"
]
},
"id": "885d905b-49cd-5d2a-a729-e092a3c1a499",
"methods": [
"GET"
],
"name": "case-insensitive-header-test_get-regions_1",
"paths": [
"~/regions$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_30-routes-with-headers-case-insensitive.yaml"
]
},
{
"id": "cf479876-5229-5791-91e6-05cb13284856",
"methods": [
"GET"
],
"name": "case-insensitive-header-test_get-regions",
"paths": [
"~/regions$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_30-routes-with-headers-case-insensitive.yaml"
]
}
],
"tags": [
"OAS3_import",
"OAS3file_30-routes-with-headers-case-insensitive.yaml"
]
}
],
"upstreams": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
openapi: '3.0.0'
info:
title: Case Insensitive Header Test
version: v1
servers:
- url: https://api.example.com/
paths:
/regions:
get:
operationId: get-regions
summary: Get regions
parameters:
- in: header
name: X-Region
required: true
schema:
type: string
enum:
- us-east
- US-EAST
- Us-East
- us-west
- US-WEST
responses:
'200':
description: Success

Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{
"_format_version": "3.0",
"services": [
{
"host": "api.example.com",
"id": "2cded145-1222-5f52-8432-399da883ddf7",
"name": "duplicate-header-name-test",
"path": "/",
"plugins": [],
"port": 443,
"protocol": "https",
"routes": [
{
"headers": {
"X-Env": [
"prod"
]
},
"id": "bf4543a7-b775-55cf-bf25-8f87e31e37d0",
"methods": [
"GET"
],
"name": "duplicate-header-name-test_get-test_0",
"paths": [
"~/test$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_38-routes-with-duplicate-header-names.yaml"
]
},
{
"headers": {
"X-Env": [
"staging"
]
},
"id": "a750ed92-977d-5c68-a885-79c110a16fd4",
"methods": [
"GET"
],
"name": "duplicate-header-name-test_get-test_1",
"paths": [
"~/test$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_38-routes-with-duplicate-header-names.yaml"
]
},
{
"headers": {
"X-Env": [
"dev"
]
},
"id": "2af97532-3406-5aac-b76d-e23f33126bad",
"methods": [
"GET"
],
"name": "duplicate-header-name-test_get-test_2",
"paths": [
"~/test$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_38-routes-with-duplicate-header-names.yaml"
]
},
{
"headers": {
"X-Env": [
"qa"
]
},
"id": "95b8e3f9-ceba-518e-9553-4453065fc55a",
"methods": [
"GET"
],
"name": "duplicate-header-name-test_get-test_3",
"paths": [
"~/test$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_38-routes-with-duplicate-header-names.yaml"
]
},
{
"id": "59f4e76e-67d9-5a0c-bd92-2c2413b23fd3",
"methods": [
"GET"
],
"name": "duplicate-header-name-test_get-test",
"paths": [
"~/test$"
],
"plugins": [],
"regex_priority": 200,
"strip_path": false,
"tags": [
"OAS3_import",
"OAS3file_38-routes-with-duplicate-header-names.yaml"
]
}
],
"tags": [
"OAS3_import",
"OAS3file_38-routes-with-duplicate-header-names.yaml"
]
}
],
"upstreams": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
openapi: '3.0.0'
info:
title: Duplicate Header Name Test
version: v1
servers:
- url: https://api.example.com/
paths:
/test:
get:
operationId: get-test
summary: Test duplicate header names with different case
parameters:
# First header: X-Env with enum [prod, staging]
- in: header
name: X-Env
required: true
schema:
type: string
enum:
- prod
- staging
# Second header: x-env (same header, different case) with enum [dev, qa]
- in: header
name: x-env
required: true
schema:
type: string
enum:
- dev
- qa
responses:
'200':
description: Success

Loading
Loading