Skip to content

Commit 060f90b

Browse files
Merge pull request #25 from istreamlabs/allow-schema
fix: allow special property names like $schema
2 parents af457e4 + 155e3b1 commit 060f90b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

fixtures/lint/casing-properties-pass.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ paths:
3030
items:
3131
type: object
3232
properties:
33+
$schema:
34+
type: string
35+
description: optional schema describing resource
3336
foo_bar:
3437
type: string
3538
description: foo_bar property

isp-rules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ rules:
8888
# Resource field casing
8989
properties-lower-snake-case:
9090
severity: error
91-
given: $..properties.*~
91+
given: $..properties[?([email protected]().startsWith("$"))]
9292
then:
9393
function: casing
9494
functionOptions:

0 commit comments

Comments
 (0)