There is the JSON
{
"$schema": "https://flagd.dev/schema/v0/flags.json",
"flags": {
"allowedProvisioningVersions": {
"state": "ENABLED",
"defaultVariant": "default",
"variants": {
"default1": [
"1",
"2"
]
}
}
}
}
It fails validation with com.networknt:json-schema-validator:2.0.1 because default1 is an array. However, flagd doesn't reject this configuration. Why is that, and is this expected behavior?
We added some validation before applying the flags to the K8s ConfigMap, and it turned out that some previously used flag configurations failed validation.
There is the JSON
{ "$schema": "https://flagd.dev/schema/v0/flags.json", "flags": { "allowedProvisioningVersions": { "state": "ENABLED", "defaultVariant": "default", "variants": { "default1": [ "1", "2" ] } } } }It fails validation with
com.networknt:json-schema-validator:2.0.1because default1 is an array. However, flagd doesn't reject this configuration. Why is that, and is this expected behavior?We added some validation before applying the flags to the K8s ConfigMap, and it turned out that some previously used flag configurations failed validation.