Skip to content

Commit

Permalink
fix: update JSONPath to resolve null properties error (#184)
Browse files Browse the repository at this point in the history
fix: update JSONPath to resolve null properties error
  • Loading branch information
jeremyhwu authored Jan 11, 2024
1 parent 5d37c04 commit 38749ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

CLI for testing Lighthouse APIs using OpenAPI specs

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/loast.svg)](https://npmjs.org/package/loast)
[![Downloads/week](https://img.shields.io/npm/dw/loast.svg)](https://npmjs.org/package/loast)
[![License](https://img.shields.io/npm/l/loast.svg)](https://github.com/department-of-veterans-affairs/lighthouse-oas-tests/blob/master/package.json)
Expand Down
2 changes: 1 addition & 1 deletion src/suites/rulesets/lighthouse-api-standards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rules:
description: Booleans should be prefixed with an auxiliary verb (such as is, has, or can).
message: '`{{property}}` is not prefixed with an auxiliary verb (e.g. "veteran" becomes "isVeteran")'
severity: warn
given: $..properties[?(@.type === "boolean")]~
given: $..properties[?(@.type === "boolean")]~, $..properties.*.data[?(@.type === "boolean")]~
then:
function: pattern
functionOptions:
Expand Down

0 comments on commit 38749ef

Please sign in to comment.