Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I add functions to my typescript ruleset #1

Merged
merged 3 commits into from Sep 2, 2022

Conversation

philsturgeon
Copy link
Contributor

@philsturgeon philsturgeon commented Sep 2, 2022

Trying to add check security, which will make sure there is either global security applied or operation level security, for every operation. Sadly I cannot work out how to get it going with this slick TypeScript format, as the docs don't cover that and my guesswork is leading me to:

spectral lint ../protect-earth-api/api/openapi.yaml --ruleset=src/ruleset.ts --verbose
Error running Spectral!
Error #1: Could not resolve './functions/checkSecurity' from src/ruleset.ts
          at error            …hared/rollup.js:198  base = Object.assig…
          at handleResolveId  …red/rollup.js:22508  return error(errUnr…
          at                  …red/rollup.js:22471  this.handleResolveI…

Any tips welcome.

@philsturgeon philsturgeon merged commit 8be6c69 into main Sep 2, 2022
@philsturgeon philsturgeon deleted the check-security branch September 2, 2022 21:59
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant