Forum Discussion

jayzhang's avatar
jayzhang
New Member
4 years ago

Swagger api 2.0 Boolean type field must have a prefix "is" in the name

Hi Recently when i develop api with swagger api 2.0. i get error message which told me the boolean type field must have a "is" prefix in the field name. How do we override it? Is there any property which allow me override name so in the gerenated POJO class, it will have the correct name in the jsonproperty. { properties: completed: type: boolean} this is failed to parse because lack of prefix "is" buy i want to use this completed as name because our json file have it and we can;t change that json file.

  • hi jayzhang 

     

    Could you share more details, or anyway to reproduce the issue? 

    Some questions:

    - What projects are you using? swagger-core, swagger-parser, swagger-codegen?