@@ -286,63 +286,62 @@ func TestOperationGobEncoding(t *testing.T) {
286286
287287 // 2. nil security requirements
288288 doTestOperationGobEncoding (t , `{
289- "description": "operation description",
290- "x-framework": "go-swagger",
291- "consumes": [ "application/json", "application/x-yaml" ],
292- "produces": [ "application/json", "application/x-yaml" ],
293- "schemes": ["http", "https"],
294- "tags": ["dogs"],
295- "summary": "the summary of the operation",
296- "operationId": "sendCat",
297- "deprecated": true,
298- "parameters": [{"$ref":"Cat"}],
299- "responses": {
300- "default": {
301- "description": "void response"
302- }
303- }
304- }` )
289+ "description": "operation description",
290+ "x-framework": "go-swagger",
291+ "consumes": [ "application/json", "application/x-yaml" ],
292+ "produces": [ "application/json", "application/x-yaml" ],
293+ "schemes": ["http", "https"],
294+ "tags": ["dogs"],
295+ "summary": "the summary of the operation",
296+ "operationId": "sendCat",
297+ "deprecated": true,
298+ "parameters": [{"$ref":"Cat"}],
299+ "responses": {
300+ "default": {
301+ "description": "void response"
302+ }
303+ }
304+ }` )
305305
306306 // 3. empty security requirement
307307 doTestOperationGobEncoding (t , `{
308- "description": "operation description",
309- "x-framework": "go-swagger",
310- "consumes": [ "application/json", "application/x-yaml" ],
311- "produces": [ "application/json", "application/x-yaml" ],
312- "schemes": ["http", "https"],
313- "tags": ["dogs"],
314- "security": [],
315- "summary": "the summary of the operation",
316- "operationId": "sendCat",
317- "deprecated": true,
318- "parameters": [{"$ref":"Cat"}],
319- "responses": {
320- "default": {
321- "description": "void response"
322- }
323- }
324- }` )
308+ "description": "operation description",
309+ "x-framework": "go-swagger",
310+ "consumes": [ "application/json", "application/x-yaml" ],
311+ "produces": [ "application/json", "application/x-yaml" ],
312+ "schemes": ["http", "https"],
313+ "tags": ["dogs"],
314+ "security": [],
315+ "summary": "the summary of the operation",
316+ "operationId": "sendCat",
317+ "deprecated": true,
318+ "parameters": [{"$ref":"Cat"}],
319+ "responses": {
320+ "default": {
321+ "description": "void response"
322+ }
323+ }
324+ }` )
325325
326326 // 4. non-empty security requirements
327327 doTestOperationGobEncoding (t , `{
328- "description": "operation description",
329- "x-framework": "go-swagger",
330- "consumes": [ "application/json", "application/x-yaml" ],
331- "produces": [ "application/json", "application/x-yaml" ],
332- "schemes": ["http", "https"],
333- "tags": ["dogs"],
334- "summary": "the summary of the operation",
335- "security": [ { "scoped-auth": [ "phone", "email" ] , "api-key": []} ],
336- "operationId": "sendCat",
337- "deprecated": true,
338- "parameters": [{"$ref":"Cat"}],
339- "responses": {
340- "default": {
341- "description": "void response"
342- }
343- }
344- }` )
345-
328+ "description": "operation description",
329+ "x-framework": "go-swagger",
330+ "consumes": [ "application/json", "application/x-yaml" ],
331+ "produces": [ "application/json", "application/x-yaml" ],
332+ "schemes": ["http", "https"],
333+ "tags": ["dogs"],
334+ "summary": "the summary of the operation",
335+ "security": [ { "scoped-auth": [ "phone", "email" ] , "api-key": []} ],
336+ "operationId": "sendCat",
337+ "deprecated": true,
338+ "parameters": [{"$ref":"Cat"}],
339+ "responses": {
340+ "default": {
341+ "description": "void response"
342+ }
343+ }
344+ }` )
346345}
347346
348347func doTestOperationGobEncoding (t * testing.T , fixture string ) {
0 commit comments