API Analysis - Stoplight package support
- Dominant language
- PowerShell
- Stars
- 45
- Forks
- 21
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
# Description
API Analysis supports spectral as our linting engine.
The following example style guides don't work as we don't support downloading stoplight packages.
How can I get the following example rulesets to work:
extends:
- "@stoplight/spectral-owasp-ruleset"
- "@stoplight/spectral-url-versioning"
rules:
oas3-always-use-https:
given:
- "$.servers[*].url"
severity: error
then:
function: pattern
functionOptions:
match: "(http:\\/\\/localhost)|(https).*"
message: Servers must use the HTTPS protocol except when using localhost
formats:
- oas3
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.