I have implemented Open API for the first time for my SprinbBoot project.
I am stuck with these errors as I don’t find documents or solutions anywhere.
It would be great if someone could direct me to the right document or provide the solution.
Error for API1
1. The response is not valid: The body of the received response is not valid against the schema constraining it in the OpenAPI definition : path / value is not a string, got []interface {} '[string1 string2 string3]'
Reason for the Above: I convert a list into JSON string using ObjectMapper and then return as ResponseEntity
Errors for API 2
- The API accepts a request with an unexpected data type (object)
instead of ‘number’ - The API accepts a generated value smaller than
the minimum defined for it - The API accepts a property value greater than the allowed maximum for an integer or number
- The API accepts a request with an unexpected data type (object) instead of ‘string’