Configure types and nullability
mainYou can restrict values to specific primitive types or allow them to be null using the @schema annotation.
Type
Supported types include: string, number, integer, boolean, object, array, and null.
Multiple Types
To allow a value to be one of several types (e.g., for keys without declared values), use the syntax type:[type1, type2]. This results in a JSON schema type array.
Nullable
The nullable keyword is a shorthand that appends null to the type inferred from the YAML value. It is semantically equivalent to explicitly listing null in a type array.
Example equivalence:
replicaCount: # @schema type:[integer, null]replicaCount: # @schema type: integer; nullable
# Explicit multiple types
replicaCount: # @schema type:[integer, null]
# Using nullable shorthand
nameOverride: "" # @schema nullable
# Using type with nullable
replicaCount: # @schema type: integer; nullable