@@ -13,7 +13,7 @@ describe('validation plugin - semantic - operations-shared', function() {
13
13
paths : {
14
14
'/' : {
15
15
get : {
16
- operationId : 'getEverything ' ,
16
+ operationId : 'get_everything ' ,
17
17
summary : 'this is a summary' ,
18
18
parameters : [
19
19
{
@@ -120,7 +120,7 @@ describe('validation plugin - semantic - operations-shared', function() {
120
120
'/CoolPath' : {
121
121
put : {
122
122
consumes : [ 'consumes' ] ,
123
- operationId : 'operationId ' ,
123
+ operationId : 'operation_id ' ,
124
124
parameters : [
125
125
{
126
126
name : 'BadParameter' ,
@@ -156,7 +156,7 @@ describe('validation plugin - semantic - operations-shared', function() {
156
156
put : {
157
157
consumes : [ 'consumes' ] ,
158
158
summary : ' ' ,
159
- operationId : 'operationId ' ,
159
+ operationId : 'operation_id ' ,
160
160
parameters : [
161
161
{
162
162
name : 'BadParameter' ,
@@ -222,7 +222,7 @@ describe('validation plugin - semantic - operations-shared', function() {
222
222
'/stuff' : {
223
223
get : {
224
224
summary : 'list stuff' ,
225
- operationId : 'listStuff ' ,
225
+ operationId : 'list_stuff ' ,
226
226
produces : [ 'application/json' ] ,
227
227
responses : {
228
228
200 : {
@@ -257,7 +257,7 @@ describe('validation plugin - semantic - operations-shared', function() {
257
257
'/stuff' : {
258
258
get : {
259
259
summary : 'list stuff' ,
260
- operationId : 'listStuff ' ,
260
+ operationId : 'list_stuff ' ,
261
261
produces : [ 'application/json' ] ,
262
262
responses : {
263
263
200 : {
@@ -300,7 +300,7 @@ describe('validation plugin - semantic - operations-shared', function() {
300
300
'x-vendor-put-op' : {
301
301
consumes : [ 'consumes' ] ,
302
302
summary : ' ' ,
303
- operationId : 'operationId ' ,
303
+ operationId : 'operation_id ' ,
304
304
parameters : [
305
305
{
306
306
name : 'BadParameter' ,
@@ -331,7 +331,7 @@ describe('validation plugin - semantic - operations-shared', function() {
331
331
'/stuff' : {
332
332
get : {
333
333
summary : 'list stuff' ,
334
- operationId : 'listStuff ' ,
334
+ operationId : 'list_stuff ' ,
335
335
produces : [ 'application/json' ] ,
336
336
parameters : [
337
337
{
@@ -375,7 +375,7 @@ describe('validation plugin - semantic - operations-shared', function() {
375
375
'/stuff' : {
376
376
get : {
377
377
summary : 'list stuff' ,
378
- operationId : 'listStuff ' ,
378
+ operationId : 'list_stuff ' ,
379
379
produces : [ 'application/json' ] ,
380
380
parameters : [
381
381
{
@@ -432,7 +432,7 @@ describe('validation plugin - semantic - operations-shared', function() {
432
432
'/fake/{id}' : {
433
433
get : {
434
434
summary : 'get fake data by id' ,
435
- operationId : 'getFakeData ' ,
435
+ operationId : 'get_fake_data ' ,
436
436
produces : [ 'application/json' ] ,
437
437
parameters : [
438
438
{
@@ -492,7 +492,7 @@ describe('validation plugin - semantic - operations-shared', function() {
492
492
'/fake/{id}' : {
493
493
get : {
494
494
summary : 'get fake data by id' ,
495
- operationId : 'getFakeData ' ,
495
+ operationId : 'get_fake_data ' ,
496
496
produces : [ 'application/json' ] ,
497
497
parameters : [
498
498
{
@@ -553,7 +553,7 @@ describe('validation plugin - semantic - operations-shared', function() {
553
553
put : {
554
554
consumes : [ 'consumes' ] ,
555
555
summary : 'this is a summary' ,
556
- operationId : 'cool_path_put ' ,
556
+ operationId : 'coolPathPut ' ,
557
557
parameters : [
558
558
{
559
559
name : 'BadParameter' ,
@@ -577,7 +577,7 @@ describe('validation plugin - semantic - operations-shared', function() {
577
577
expect ( res . warnings . length ) . toEqual ( 1 ) ;
578
578
expect ( res . warnings [ 0 ] . path ) . toEqual ( 'paths./CoolPath.put.operationId' ) ;
579
579
expect ( res . warnings [ 0 ] . message ) . toEqual (
580
- 'operationIds must follow case convention: lower_camel_case '
580
+ 'operationIds must follow case convention: lower_snake_case '
581
581
) ;
582
582
expect ( res . errors . length ) . toEqual ( 0 ) ;
583
583
} ) ;
@@ -589,7 +589,7 @@ describe('validation plugin - semantic - operations-shared', function() {
589
589
put : {
590
590
consumes : [ 'consumes' ] ,
591
591
summary : 'this is a summary' ,
592
- operationId : 'coolPathPut ' ,
592
+ operationId : 'cool_path_put ' ,
593
593
parameters : [
594
594
{
595
595
name : 'BadParameter' ,
@@ -633,7 +633,7 @@ describe('validation plugin - semantic - operations-shared', function() {
633
633
paths : {
634
634
'/' : {
635
635
get : {
636
- operationId : 'getEverything ' ,
636
+ operationId : 'get_everything ' ,
637
637
summary : 'this is a summary' ,
638
638
responses : {
639
639
default : {
@@ -679,7 +679,7 @@ describe('validation plugin - semantic - operations-shared', function() {
679
679
paths : {
680
680
'/' : {
681
681
get : {
682
- operationId : 'getEverything ' ,
682
+ operationId : 'get_everything ' ,
683
683
summary : 'get everything as a string or an array' ,
684
684
responses : {
685
685
'200' : {
0 commit comments