Redocly/redoc

Reference title is displayed in output

Open

#878 opened on Apr 2, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (21,877 stars) (2,272 forks)batch import
Type: Enhancementhelp wanted

Description

Here's my piece of spec:

"AuthenticatewithFacebookRequest": {
                "required": [
                    "facebookToken",
                    "apiKey",
                    "uuid"
                ],
                "type": "object",
                >>some irrelevant params here<<
                "properties": {
                    "agreements": {
                        "$ref": "#/components/schemas/Agreements"
                    },
                    "attributes": {
                        "$ref": "#/components/schemas/Attributes"
                    },
                    "tags": {
                        "$ref": "#/components/schemas/Tags"
                    }

Here's the "Agreements" schema:

            "Agreements": {
                "description": "Marketing agreements of the Client",
                "required": [
                    "email",
                    "sms",
                    "push",
                    "bluetooth",
                    "rfid",
                    "wifi"
                ],
                "type": "object",
                "properties": {
                    "email": {
                        "type": "boolean",
                        "description": "Permission to receive marketing information by e-mail"
                    },
                    "sms": {
                        "type": "boolean",
                        "description": "Permission to receive marketing information by SMS"
                    },
                    "push": {
                        "type": "boolean",
                        "description": "Permission to receive push notifications"
                    },
                    "bluetooth": {
                        "type": "boolean"
                    },
                    "rfid": {
                        "type": "boolean"
                    },
                    "wifi": {
                        "type": "boolean"
                    }

The output is in the attached image and my problem is marked with arrows. Can I stop ReDoc from attaching the name of the referenced schema? I can use a reference resolver (swagger-combine in my case, with just one file to combine with nothing) before feeding my spec to ReDoc, but could I avoid this additional step?

Contributor guide