jayzhang
4 years agoNew Member
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.