Forum Discussion

mannan's avatar
mannan
Occasional Visitor
3 years ago

Adding example in parameters not showing up in Swagger UI

Trying to add example in parameter but its not showing up in Swagger UI.

parameters:
- in: query
name: tpaaId
description: third party plan Identifier from HDM. Example:`9740000`
required: true
schema:
type: string
example: 111

 

Configs in pom.xml is below,

 

<java.version>11</java.version>
<spring-cloud.version>2021.0.1</spring-cloud.version>
<spring-cloud-gcp.version>2.0.4</spring-cloud-gcp.version>
<mapstruct.version>1.4.2.Final</mapstruct.version>
<openapi-version>1.2.32</openapi-version>
<springdoc-openapi-webflux-ui-version>1.6.12</springdoc-openapi-webflux-ui-version>
<swagger-annotations-version>1.6.9</swagger-annotations-version>
<springfox-swagger2>3.0.0</springfox-swagger2>
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
<karate.version>0.9.6</karate.version>
<openapi-tool-version>5.4.0</openapi-tool-version>

 

 

No RepliesBe the first to reply