export function createJsonSchemaDocument(jsonSchema, options = {}) {
    const { id, schema: schemaUri = "https://json-schema.org/draft/2020-12/schema", ...metadata } = options;
    const document = {
        $schema: schemaUri,
        ...jsonSchema
    };
    if (id !== undefined) {
        document.$id = id;
    }
    if (metadata.title !== undefined) {
        document.title = metadata.title;
    }
    if (metadata.description !== undefined) {
        document.description = metadata.description;
    }
    return document;
}
