monitor_schema.models.utils#
Common utilities.
Attributes#
Functions#
|
Turn anyOf in JSON schema to oneOf. |
|
Duration of a field. |
Module Contents#
- monitor_schema.models.utils.anyOf_to_oneOf(schema: Dict[str, Any], field_name: str) None [source]#
Turn anyOf in JSON schema to oneOf.
onfOf is much stricter and pyDantic doesn’t produce this tag. We hijack the JSON schema object to set this correctly.
- monitor_schema.models.utils.COLUMN_NAME_TYPE#
- monitor_schema.models.utils.METRIC_NAME_STR#