Closed savage-alex closed 4 years ago
@savage-alex great point!
@p0lip has just added a defined
core function so you can use that when we get v5.5.1 tagged.
Kudos for the super fast fix!
Spectral v5.6.0 has been released and contains this defined core function.
Hi,
I have the following rule:
adv-query-parameters-example-exists: description: All query parameters SHOULD have an example. severity: error message: 'All query parameters SHOULD have an example.' given: "$..parameters[?(@.in == 'query')]" then: field: example function: truthy
Which works fine on all but examples that are of type Boolean and value of False. Any ideas?