def extract_ref_uri(ref: str, uri: str) -> str:
    """Extract uri from ref."""
    if ref.startswith("#/components/schemas/"):
        return f"{uri}#{ref[21:]}"
    else:
        return f"{uri}#{ref}"