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
I started using this library to validate my Spring MVC implementation against a RAML definition. It works pretty well, thanks a lot.
I have found a couple of issues I would like to ask if they are some bugs or it is worked as intended for some reason.
RamlVerifier class hardcodes the creation of the factory to use always version 0.8. I changed it to detect the version depending on RAML file header and it worked.
Some methods in class RJP10V2RamlQueryParametere raise an UnsupportedOperationException in case the type of the parameter is different from expected one. But the class that uses this methods expects they return a null value if the validation does not apply. Therefor, I got this exception for any parameter. I tried returning null values instead of throwing the exception and everything works as expected.
This is a very useful libraty. Good job.
Regards,
Félix.
The text was updated successfully, but these errors were encountered:
The hardcoding of 0.8 was intentional since at present we can only go from RAML -> code with 1.0 support. With the file you tested, did you also include any Raml Types (1.0)?
Changing the QueryParameter to return null instead of throwing an exception makes sense
Hi,
I started using this library to validate my Spring MVC implementation against a RAML definition. It works pretty well, thanks a lot.
I have found a couple of issues I would like to ask if they are some bugs or it is worked as intended for some reason.
RamlVerifier class hardcodes the creation of the factory to use always version 0.8. I changed it to detect the version depending on RAML file header and it worked.
Some methods in class RJP10V2RamlQueryParametere raise an UnsupportedOperationException in case the type of the parameter is different from expected one. But the class that uses this methods expects they return a null value if the validation does not apply. Therefor, I got this exception for any parameter. I tried returning null values instead of throwing the exception and everything works as expected.
This is a very useful libraty. Good job.
Regards,
Félix.
The text was updated successfully, but these errors were encountered: