Skip to content

Commit

Permalink
spectral
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlprice committed Jul 9, 2020
1 parent a8d7dc9 commit f6f13af
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .spectral.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
formats: []
extends:
- 'spectral:oas'
rules:
info-matches-stoplight:
description: This is an example rule
message: Info must contain Stoplight
given: $.info
recommended: true
type: style
then:
field: title
function: pattern
functionOptions:
match: Stoplight

0 comments on commit f6f13af

Please sign in to comment.