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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user