def __init__(
self,
path: str,
description: str | None = None,
tags: Sequence[Union["Tag", "TagDict", dict[str, Any]]] | None = None,
unique_id: str | None = None,
include_in_schema: bool = False,
asyncapi_json_path: str | None = EMPTY,
*,
try_it_out_path: str | None = EMPTY,
sidebar: bool = True,
info: bool = True,
servers: bool = True,
operations: bool = True,
messages: bool = True,
schemas: bool = True,
errors: bool = True,
expand_message_examples: bool = True,
asyncapi_js_url: str = ASYNCAPI_JS_DEFAULT_URL,
asyncapi_css_url: str = ASYNCAPI_CSS_DEFAULT_URL,
try_it_out_plugin_url: str = ASYNCAPI_TRY_IT_PLUGIN_URL,
) -> None:
self.path = path
if asyncapi_json_path is EMPTY:
asyncapi_json_path = path.rstrip("/") + ".json"
self.asyncapi_json_path = asyncapi_json_path
if try_it_out_path is EMPTY:
try_it_out_path = path.rstrip("/") + "/try"
self.try_it_out_path = try_it_out_path
self.description = description
self.tags = tags
self.unique_id = unique_id
self.include_in_schema = include_in_schema
self.sidebar = sidebar
self.info = info
self.servers = servers
self.operations = operations
self.messages = messages
self.schemas = schemas
self.errors = errors
self.expand_message_examples = expand_message_examples
self.asyncapi_js_url = asyncapi_js_url
self.asyncapi_css_url = asyncapi_css_url
self.try_it_out_plugin_url = try_it_out_plugin_url