def merge_schema(first, second):
    if not (type(first) == type(second) == dict):
        raise ValueError("Argument is not a schema")

    if not (first.get('type') == second.get('type') == 'object'):
        raise NotImplementedError("Unsupported root type")

    return merge_objects(first, second)
Returns the result of merging the two given schemas.
dataset/ETHPy150Open scrapinghub/skinfer/skinfer/json_schema_merger.py/merge_schema