In swagger spec, attributes with URI as value instead of URL not giving any validation error/warnings.
For example tokenURL in securitydefinitions requires 'URL' as per OAS 2.0 standards.
But providing URI, sway library not throwing any errors. Although the appropriate error, receive in swagger editor through manual upload of same swagger spec.
securityDefinitions:
ios:
type: oauth2
tokenUrl: /oauth/token
No error comes with the above example using sway library for validation.
Refer: OAS 2.0 documentation link. See 'tokenURL' description.
Please fix this validation in code. And this error needs to be fixed for every URL property.
In swagger spec, attributes with URI as value instead of URL not giving any validation error/warnings. For example tokenURL in securitydefinitions requires 'URL' as per OAS 2.0 standards. But providing URI, sway library not throwing any errors. Although the appropriate error, receive in swagger editor through manual upload of same swagger spec. securityDefinitions: ios: type: oauth2 tokenUrl: /oauth/token
No error comes with the above example using sway library for validation. Refer: OAS 2.0 documentation link. See 'tokenURL' description.
Please fix this validation in code. And this error needs to be fixed for every URL property.