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

chore: remove addRules and addFunctions #711

Merged
merged 4 commits into from
Oct 29, 2019

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Oct 28, 2019

Fixes #695

Addresses parts of #561

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

@P0lip P0lip added breaking Pull requests that introduce a breaking change chore labels Oct 28, 2019
@P0lip P0lip requested a review from philsturgeon October 28, 2019 12:21
@P0lip P0lip self-assigned this Oct 28, 2019
@P0lip P0lip force-pushed the feat/remove-add-rules-functions branch from 878a9e4 to b56fb6c Compare October 28, 2019 14:13
@@ -18,6 +18,7 @@ rules:
function: truthy
```

Spectral has a built-in set of functions which you can reference in your rules. This example uses the `truthy` to create a rule that checks that the value is true.
The example above adds a single rule that checks that tags objects have a description property defined.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The example above" sounds a little funny now as we already say "This example". Can you merge the two sentences to make it less redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you are right. It does sounds awkward. Will merge

philsturgeon
philsturgeon previously approved these changes Oct 28, 2019
@P0lip P0lip merged commit bf69b5e into develop Oct 29, 2019
@P0lip P0lip deleted the feat/remove-add-rules-functions branch October 29, 2019 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Pull requests that introduce a breaking change chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs should be updated to remove deprecated functions
2 participants