-
Hello! In In I defined following OpenAPI openapi: 3.0.3
info:
title: Parameters example
version: 0.1.0
servers:
- url: 'https://127.0.0.1/api/rest'
paths:
'/foo/{bar}':
post:
parameters:
- name: bar
in: header
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
'200':
description: Example
content:
application/json:
schema:
type: string
delete:
responses:
'200':
description: OK
parameters:
- required: true
name: bar
in: path
schema:
type: string I defined |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Your API definition is correct - it's OK to have parameters with the same The issue you're seeing is a bug in Swagger UI. Please submit a bug report here: |
Beta Was this translation helpful? Give feedback.
-
Resolved by filing an issue elsewhere, so closing here. |
Beta Was this translation helpful? Give feedback.
Your API definition is correct - it's OK to have parameters with the same
name
as long as they have different location (i.e. path vs header).The issue you're seeing is a bug in Swagger UI. Please submit a bug report here:
https://github.com/swagger-api/swagger-ui/issues