Skip to content

kevinswiber/spectral-custom-function-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spectral-custom-function-example

This is an example of using hosted Spectral rulesets with custom functions.

Usage

Warning example:

echo '{"greeting": {"message": "nope"}}' | spectral lint \
  -r https://raw.githubusercontent.com/kevinswiber/spectral-custom-function-example/main/ruleset.yaml

Passing example:

echo '{"greeting": {"message": "hello"}}' | spectral lint \
  -r https://raw.githubusercontent.com/kevinswiber/spectral-custom-function-example/main/ruleset.yaml

License

MIT

About

Temporary repo to demonstrate hosted Spectral rulesets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published