stoplightio / path

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

As a prospective Spectral user, I have non-HTTP URLs

CorbinSimpsonDaedalus opened this issue · comments

Hi! I'm evaluating Spectral and found this. It seems like isURL is a bit too restrictive, only accepting HTTP and HTTPS URLs.

User Story Description

As a prospective Spectral user, I would like isURL to accept any URL protocol, because my existing services have non-HTTP URLs.

Acceptance Criteria

  • Spectral accepts non-HTTP examples of URLs in OpenAPI specifications

For example:

schema:
  type: string
  format: url
example: ftp://ftp.example.com/

Sprint Ready Checklist

  • Acceptance criteria defined
  • Team understands acceptance criteria
  • Team has defined solution / steps to satisfy acceptance criteria
  • Acceptance criteria is verifiable / testable
  • External / 3rd Party dependencies identified