You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CobiGen should warn the user that the OpenAPI specification file that he is trying to use for CobiGen in order to generate code, is not a valid OpenAPI 3.0.0 specification.
Therefore, if it is not a valid file, it should popup a message describing that. It could be interesting to also specify why it is not a valid OpenAPI 3.0.0 definition.
CobiGen should always work with valid OpenAPI 3.0.0 specification files. You can test if your OpenAPI specification file is valid by using this link.
In our current implementation, we are using a parser called RepreZen. Most probably there is already a method to validate an OpenAPI file like:
isValidOpenApi(file)
Therefore we should investigate this and try to implement this logic.
For instance, this is an example of an invalid yaml file that breaks CobiGen:
If I try to generate from an OpenAPI definition of a component, and that component defines a property that references a missing component, CobiGen gets broken.
Description
CobiGen should warn the user that the OpenAPI specification file that he is trying to use for CobiGen in order to generate code, is not a valid OpenAPI 3.0.0 specification.
Therefore, if it is not a valid file, it should popup a message describing that. It could be interesting to also specify why it is not a valid OpenAPI 3.0.0 definition.
CobiGen should always work with valid OpenAPI 3.0.0 specification files. You can test if your OpenAPI specification file is valid by using this link.
In our current implementation, we are using a parser called RepreZen. Most probably there is already a method to validate an OpenAPI file like:
isValidOpenApi(file)
Therefore we should investigate this and try to implement this logic.
For instance, this is an example of an invalid yaml file that breaks CobiGen:
If I try to generate from an OpenAPI definition of a component, and that component defines a property that references a missing component, CobiGen gets broken.
This is the component that breaks CobiGen:
As the component
ErrorResponse_errorList
is missing, it throws this error:The error message should be:
If I add the component, it works fine:
Steps to reproduce (bug) / Use Case of feature request (enhancement)
.yml
file on the root of your project and add the following content:The text was updated successfully, but these errors were encountered: