Bugzilla – Attachment 61163 Details for
Bug 18137
Migrate from Mojolicious::Plugin::Swagger2 to Mojolicious::Plugin::OpenAPI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18137: (follow-up) operationId must be unique
Bug-18137-follow-up-operationId-must-be-unique.patch (text/plain), 1.92 KB, created by
Lari Taskula
on 2017-03-16 11:58:12 UTC
(
hide
)
Description:
Bug 18137: (follow-up) operationId must be unique
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2017-03-16 11:58:12 UTC
Size:
1.92 KB
patch
obsolete
>From 065ef8e7fb31f8cd4c280a1591f9eaa307ad139a Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Thu, 16 Mar 2017 13:53:44 +0200 >Subject: [PATCH] Bug 18137: (follow-up) 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. >--- > 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 8b739d6..2fe9f49 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" >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18137
:
60490
|
60491
|
60492
|
60493
|
60494
|
60495
|
60533
|
60837
|
60838
|
60839
|
60840
|
60841
|
60842
|
60843
|
60866
|
60867
|
61163
|
61166
|
62780
|
62781
|
62782
|
62783
|
62784
|
62785
|
62786
|
62787
|
62788
|
62789
|
62816
|
63025
|
63026
|
63027
|
63028
|
63029
|
63030
|
63031
|
63032
|
63033
|
63034
|
63177
|
63178
|
63179
|
63180
|
63181
|
63182
|
63183
|
63184
|
63185
|
63186
|
63187
|
63188
|
63189
|
63190
|
63191
|
63192
|
63193
|
63194
|
63195
|
63196
|
63283
|
65106
|
65107
|
65108
|
65109
|
65110
|
65111
|
65112
|
65113
|
65114
|
65115
|
65404
|
65713
|
65714
|
66802
|
66803
|
66804
|
66805
|
66806
|
66807
|
66808
|
66809
|
66810
|
66811
|
66812
|
66813
|
66814
|
66815
|
66816
|
66817
|
66818
|
66819