@classmethod
def change_format_to_oneOf(cls, schema: dict) -> dict:
    new_schema = {}
    for (key, value) in schema.items():
        if isinstance(value, dict):
            value = cls.change_format_to_oneOf(value)
        if (key == 'anyOf'):
            new_schema['oneOf'] = value
        else:
            new_schema[key] = value
    return new_schema
@classmethod
def change_format_to_oneOf(cls, schema: dict) -> dict:
    new_schema = {}
    for (key, value) in schema.items():
        if isinstance(value, dict):
            value = cls.change_format_to_oneOf(value)
        if (key == 'anyOf'):
            new_schema['oneOf'] = value
        else:
            new_schema[key] = value
    return new_schema