Skip to content

ref

faststream.specification.asyncapi.utils.ref #

ref(*parts: str) -> dict[str, str]
Source code in faststream/specification/asyncapi/utils.py
def ref(*parts: str) -> dict[str, str]:
    return {"$ref": "#/" + "/".join(_encode_json_pointer_part(p) for p in parts)}