Skip to content

meringue.api.docs.views ¤

MeringueSpectacularAPIView ¤

Bases: SpectacularAPIView

Spectacular wrapper that patches the schema.

patch_schema ¤

patch_schema(openapi_schema: dict)

Method patching OpenAPI3 object.

Attributes:

  • openapi_schema

    OpenAPI Object.

Source code in meringue/api/docs/views.py
def patch_schema(self, openapi_schema: dict):
    """
    Method patching OpenAPI3 object.

    Attributes:
        openapi_schema: OpenAPI Object.
    """

    if self.patcher:
        self.patcher.patch_schema(openapi_schema)