Custom Rule is always valid

Hello there,

I’ve started to use spotlight CLI and I encounter my first inconveniences.
Seems that all my customs rules always pass the assert even when i do everything to fail it :laughing:
Here is my .spotlight.yml:
rules:
security-definition-set-with-oauth2:
description: Security definition must contain oauth2 or Bearer
given: $.securityDefinitions[?(@.type == “bearer” || @.type == “oauth2”)]
severity: error
recommended: true
then:
field: type
function: truthy
contact-properties:
description: Contact object should have name, url and email.
recommended: true
severity: error
type: style
given: $.info.contact
then:
field: name
function: truthy
my-rule-name:
description: Tags must have a description.
given: $.tags[*]
severity: error
recommended: true
then:
field: description
function: truthy

When i launch “$ spectral lint swagger.json -v -f=json -o=report.json --fail-severity=hint -r=.spectral.yml” the CLI tells me that:

In swagger.json there’s a securityDefinition but without “bearer” or “oauth2” type.
There’s no info.contact.name
$.tags is an empty array.

So all those tests should fail…

Any idea to help me ?