-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Schema Function Not Working with @key #726
Comments
@dillonredding |
@dillonredding |
@P0lip |
@dillonredding no rule will be needed. Each property key that could not be used in JSON will be reported automatically by Spectral |
Describe the bug
The
schema
function doesn't appear to work whenfield
is'@key'
. Here's the rule I'm trying to create:To Reproduce
Given this OpenAPI document
Run this CLI command
spectral lint test-spec.yaml -r my-rules.yaml
Expected behavior
The lint output should contain the following:
It might be worth noting that if the rule is changed so that
type
isnumber
orinteger
, the rule is triggered.Environment
The text was updated successfully, but these errors were encountered: