Wednesday, 28 July 2021

TypeError: Cannot read property 'anyOf' of undefined

 https://www.drupal.org/project/openapi_jsonapi/issues/3185778

Swagger UI Failure due to incorrect file format :


  "dummyAPI": {
            "post": {
                "parameters": [
                    {
                        "name": "ids",
                        "in": "query",
                        "description": "The IDS ,
                        "required": true,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "object"
                            }
                        }
                    }
                ],
                "tags": [
                    "DummyTag"
                ],
                "summary": "Dummy summary",
                "description": "Dummy Description",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "ids": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "title": "Dummy  ID",
                                            "description": "Dummy  ID information.",
                                            "properties": {
                                                "dummy_id": {
                                                    "type": "string",
                                                    "title": "Dummy ID",
                                                    "description": "The dummy  ID."
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },

No comments:

Post a Comment