1
0
Fork 0
salty-dog/rules/salty-dog.yml

48 lines
916 B
YAML
Raw Normal View History

2019-06-16 00:43:01 +00:00
rules:
- name: salty-dog-rule
desc: rules must be complete
level: info
tags:
- important
2019-06-16 03:54:40 +00:00
- salty-dog
2019-06-16 00:43:01 +00:00
select: '$.rules[*]'
check:
type: object
additionalProperties: false
required:
# metadata
- name
- desc
- level
- tags
# data
- select
- check
properties:
name:
type: string
pattern: "[-a-z0-9]+"
2019-06-16 00:43:01 +00:00
desc:
type: string
minLength: 8
maxLength: 255
2019-06-16 00:43:01 +00:00
level:
type: string
enum:
- debug
- info
- warn
- error
2019-06-16 00:43:01 +00:00
tags:
type: array
items:
type: string
pattern: "[-:a-z0-9]+"
2019-06-16 00:43:01 +00:00
select:
type: string
minLength: 1
2019-06-16 00:43:01 +00:00
filter:
type: object
check:
type: object