Adding query parameter is not detected as change

Issue #21 new
Former user created an issue

Why is adding a query parameter to a GET endpoint not detected as a change?

new:

"/foo/{id}/bar": {
            "get": {
                "operationId": "getFoo",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "required": true,
                        "name": "query",
                        "schema": {
                            "type": "string"
                        }
                    },

                ],
                "responses": {
                    "default": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                }
                            }
                        },
                        "description": "default response"
                    }
                }
            }
        },

old:

"/foo/{id}/bar": {
            "get": {
                "operationId": "getFoo",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                ],
                "responses": {
                    "default": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "items": {
                                        "type": "string"
                                    },
                                    "type": "array"
                                }
                            }
                        },
                        "description": "default response"
                    }
                }
            }
        },

Comments (0)

  1. Log in to comment