Relax linting to allow null recommendation

This commit updates the YAML schema to permit explicitly setting
`recommend: null` or `recommend: ~` in scripts within collection files.

Previously, the schema only allowed string values for the recommendation
field, restricting it to 'standard' or 'strict'. By introducing the
`RecommendationLevel` definition, the schema now supports both string
and null values, providing more flexibility in specifying
recommendations in collection YAML files.
This commit is contained in:
undergroundwires
2024-08-02 16:44:15 +02:00
parent 48d97afdf6
commit 6fbc81675f

View File

@@ -69,6 +69,12 @@ definitions:
- $ref: '#/definitions/CodeScript'
- $ref: '#/definitions/CallScript'
RecommendationLevel:
oneOf:
- type: string
enum: [standard, strict]
- type: 'null'
ScriptDefinition:
type: object
allOf:
@@ -78,8 +84,7 @@ definitions:
name:
type: string
recommend:
type: string
enum: [standard, strict]
$ref: '#/definitions/RecommendationLevel'
CodeScript:
type: object