From afae4725c228dbe9d2fd4236b8d3d5d8bedf4b5f Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Thu, 16 Mar 2017 13:53:44 +0200 Subject: [PATCH] Bug 18282: operationId must be unique operationId has the following documentation: "Unique string used to identify the operation. The id MUST be unique among all operations described in the API." This patch modifies operationIds to be unique accross our API operations. Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/paths/cities.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v1/swagger/paths/cities.json b/api/v1/swagger/paths/cities.json index 8b739d6d2a..2fe9f49666 100644 --- a/api/v1/swagger/paths/cities.json +++ b/api/v1/swagger/paths/cities.json @@ -2,7 +2,7 @@ "/cities": { "get": { "x-mojo-to": "Cities#list", - "operationId": "list", + "operationId": "listCities", "tags": ["cities"], "produces": [ "application/json" @@ -64,7 +64,7 @@ }, "post": { "x-mojo-to": "Cities#add", - "operationId": "add", + "operationId": "addCity", "tags": ["cities"], "parameters": [{ "name": "body", @@ -120,7 +120,7 @@ "/cities/{cityid}": { "get": { "x-mojo-to": "Cities#get", - "operationId": "get", + "operationId": "getCity", "tags": ["cities"], "parameters": [{ "$ref": "../parameters.json#/cityidPathParam" @@ -157,7 +157,7 @@ }, "put": { "x-mojo-to": "Cities#update", - "operationId": "update", + "operationId": "updateCity", "tags": ["cities"], "parameters": [{ "$ref": "../parameters.json#/cityidPathParam" @@ -219,7 +219,7 @@ }, "delete": { "x-mojo-to": "Cities#delete", - "operationId": "delete", + "operationId": "deleteCity", "tags": ["cities"], "parameters": [{ "$ref": "../parameters.json#/cityidPathParam" -- 2.14.1