Skip to content

Not able to validate 'URL' fields in swagger specification like tokenURL #197

@arpitgarg1

Description

@arpitgarg1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions