()
return schema
Get the configuration structure as a json schema
Get the configuration structure as a json schema
Get the configuration structure as a json schema
def config_as_json_schema() -> dict:
    """Get the configuration structure as a json schema"""
    # pylint: disable=import-outside-toplevel
    from .structure import RootConfig

    schema, = python_type_to_json_schemas(RootConfig)
    # Some of the default values will still be python types,
    # so let's use deform_to_bus to turn them into something
    # that'll be json safe
    schema = deform_to_bus(schema)

    schema["$schema"] = SCHEMA_URI
    return schema
def config_as_json_schema ( ) -> dict : # pylint: disable=import-outside-toplevel from . structure import RootConfig schema , = python_type_to_json_schemas ( RootConfig ) # Some of the default values will still be python types, # so let's use deform_to_bus to turn them into something # that'll be json safe schema = deform_to_bus ( schema ) schema [ "$schema" ] = SCHEMA_URI return schema