Forum Discussion

sada_s's avatar
sada_s
Occasional Visitor
3 years ago

Parameter data type not identified properly after upgraded 'io.swagger.core.v3' version to 2.2.2

Here is my parameters defined in my Resource class

@Schema(description = "XXX ID")
private Integer xxxId;

 

Below is the API spec generated before 2.2.2

- name: xxxId
  in: query
  required: false
  schema:
    type: integer
    description: XXX ID
    format: int32

 

After upgraded to 2.2.2 , find below API spec 

 

- name: xxxId
  in: query
  required: false
  schema:
    type: string
    description: XXX ID

 

Data type is defaulted to 'string', no change in code only swagger IO version upgradation done.

 

Please throw some light of this to resolve the issue.

 

No RepliesBe the first to reply