mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
* Add script for values_schema.schema.json match filed update * Update values_schema.schema.json file
181 lines
5.8 KiB
JSON
181 lines
5.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"description": "This schema is used to validate `values.schema.json` to ensure each parameter has `default` and `description` set, and that top level properties have a `x-docsSection` set.",
|
|
"definitions": {
|
|
"leafs": {
|
|
"additionalProperties": {
|
|
"if": {
|
|
"not": {
|
|
"properties": {
|
|
"description": {
|
|
"pattern": "^Labels for the configmap$|^Labels for the secret$|^Annotations for the configmap$|^Annotations for the secret$"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/leafs"
|
|
}
|
|
}
|
|
},
|
|
"if": {
|
|
"oneOf": [
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "array"
|
|
},
|
|
"items": false
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"array",
|
|
"null"
|
|
]
|
|
},
|
|
"items": false
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "boolean"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"boolean",
|
|
"integer",
|
|
"number",
|
|
"string"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"boolean",
|
|
"null",
|
|
"number",
|
|
"string"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "integer"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"integer",
|
|
"string"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"null",
|
|
"object"
|
|
]
|
|
},
|
|
"properties": false
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "number"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "object"
|
|
},
|
|
"properties": false
|
|
}
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"description",
|
|
"default"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"x-docsSectionOrder"
|
|
],
|
|
"properties": {
|
|
"section_order": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"properties": {
|
|
"additionalProperties": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/leafs"
|
|
},
|
|
{
|
|
"required": [
|
|
"x-docsSection"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|