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/CodeScript'
|
||||||
- $ref: '#/definitions/CallScript'
|
- $ref: '#/definitions/CallScript'
|
||||||
|
|
||||||
|
RecommendationLevel:
|
||||||
|
oneOf:
|
||||||
|
- type: string
|
||||||
|
enum: [standard, strict]
|
||||||
|
- type: 'null'
|
||||||
|
|
||||||
ScriptDefinition:
|
ScriptDefinition:
|
||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
@@ -78,8 +84,7 @@ definitions:
|
|||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
recommend:
|
recommend:
|
||||||
type: string
|
$ref: '#/definitions/RecommendationLevel'
|
||||||
enum: [standard, strict]
|
|
||||||
|
|
||||||
CodeScript:
|
CodeScript:
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
Reference in New Issue
Block a user