Add meta schema support for enum types by jack-berg · Pull Request #367 · open-telemetry/opentelemetry-configuration (original) (raw)
@marcalff's comment here made me realize that meta schema support for enum types is bad, preventing us from describing each individual enum value, and from setting language implementation support status for each individual enum value.
In case of translation_strategy for prometheus, I have a case where not all enum values are supported.
This improves it.
- Each type in
meta_schema_types.yamlnow has either.propertiesor.enumValuesbased on whether its an object or enum type - Each type in
meta_schema_languages_{language}.yamlnow has either.propertyOverridesor.enumOverridesbased on whether its an object or enum type schema-docs.mdnow recognizes the enum types from object types, and displays enum types better, for example:
