import { isReferenceObject } from "../../3.1/guards/isReferenceObject";
import { resolveReference } from "./resolveReference";
export function resolveSchemaReference(schema, document) {
    if (isReferenceObject(schema)) {
        return resolveReference(schema, document, {
            type: "unknown",
            "x-fern-type": "unknown",
            additionalProperties: false,
        });
    }
    return schema;
}
