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
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.
The text was updated successfully, but these errors were encountered:
arpitgarg1
changed the title
Not able to validate URL in swagger specficiation
Not able to validate 'URL' fields in swagger specification like tokenURL
Dec 22, 2018
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.
The text was updated successfully, but these errors were encountered: