[config-schema] error when using custom validation function with oneOf
/ UnionType
#64906
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Configuration
Settings in kibana.yml
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
This test:
currently fails with:
seems to be caused by something around
kibana/packages/kbn-config-schema/src/types/type.ts
Lines 60 to 62 in c4ddd00
UnionType
is based on joi'salternatives
type:AlternativesSchema
which extendsAnySchema
.However after a closer look, this
custom
definition is not in joi's package, but in our custom joi definition file:kibana/packages/kbn-config-schema/types/joi.d.ts
Lines 44 to 46 in 066613e
so it's very likely that
custom
is not actually present on all joi implementations ofAnySchema
and that our definition is wrong.Maybe other types are also affected by this bug.
The text was updated successfully, but these errors were encountered: