Created by: bgong-mdsol
This PR fixes the issue #11942
Here is the openapi spec for reproduce the issue and verify the fix.
openapi: 3.0.0
info:
title: Request Header
version: "1.0.0"
paths:
/test:
get:
summary: Empty Route
parameters:
- description: Gets user info.
explode: false
in: header
name: user_uuid
required: true
schema:
format: uuid
type: string
style: simple
responses:
"200":
description: Good Request.
content:
application/json:
schema:
$ref: '#/components/schemas/ReturnValue'
"400":
description: Bad Request.
components:
schemas:
ReturnValue:
properties:
name:
type: string
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
@chameleon82 @clasnake @jimschubert @shijinkui @ramzimaalej @Bouillie @wing328