Show a minimal `values.schema.json`.
IntermediateConceptHooks, Tests & Validation
Answer
{
"$schema": "https://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["api", "postgres"],
"properties": {
"api": {
"type": "object",
"required": ["image", "replicaCount"],
"properties": {
"replicaCount": { "type": "integer", "minimum": 1 },
"image": {
"type": "object",
"required": ["repository"],
"properties": {
"repository": { "type": "string", "minLength": 1 },
"tag": { "type": "string" },
"pullPolicy": { "enum": ["Always", "IfNotPresent", "Never"] }
}
}
}
}
}
}
A bad value fails with values don't meet the specifications of the schema(s) in the following chart(s): shop: - api.replicaCount: Invalid type. Expected: integer, given: string.