@@ -445,21 +445,21 @@ object OpenAPI {
445
445
* path.
446
446
* @param description
447
447
* A description, intended to apply to all operations in this path.
448
- * @param getOp
448
+ * @param get
449
449
* A definition of a GET operation on this path.
450
- * @param putOp
450
+ * @param put
451
451
* A definition of a PUT operation on this path.
452
- * @param postOp
452
+ * @param post
453
453
* A definition of a POST operation on this path.
454
- * @param deleteOp
454
+ * @param delete
455
455
* A definition of a DELETE operation on this path.
456
- * @param optionsOp
456
+ * @param options
457
457
* A definition of a OPTIONS operation on this path.
458
- * @param headOp
458
+ * @param head
459
459
* A definition of a HEAD operation on this path.
460
- * @param patchOp
460
+ * @param patch
461
461
* A definition of a PATCH operation on this path.
462
- * @param traceOp
462
+ * @param trace
463
463
* A definition of a TRACE operation on this path.
464
464
* @param servers
465
465
* An alternative server List to service all operations in this path.
@@ -474,35 +474,35 @@ object OpenAPI {
474
474
@ fieldName(" $ref" ) ref : Option [String ],
475
475
summary : Option [String ],
476
476
description : Option [Doc ],
477
- getOp : Option [Operation ],
478
- putOp : Option [Operation ],
479
- postOp : Option [Operation ],
480
- deleteOp : Option [Operation ],
481
- optionsOp : Option [Operation ],
482
- headOp : Option [Operation ],
483
- patchOp : Option [Operation ],
484
- traceOp : Option [Operation ],
477
+ get : Option [Operation ],
478
+ put : Option [Operation ],
479
+ post : Option [Operation ],
480
+ delete : Option [Operation ],
481
+ options : Option [Operation ],
482
+ head : Option [Operation ],
483
+ patch : Option [Operation ],
484
+ trace : Option [Operation ],
485
485
servers : List [Server ] = List .empty,
486
486
parameters : Set [ReferenceOr [Parameter ]] = Set .empty,
487
487
) {
488
- def get (operation : Operation ): PathItem = copy(getOp = Some (operation))
489
- def put (operation : Operation ): PathItem = copy(putOp = Some (operation))
490
- def post (operation : Operation ): PathItem = copy(postOp = Some (operation))
491
- def delete (operation : Operation ): PathItem = copy(deleteOp = Some (operation))
492
- def options (operation : Operation ): PathItem = copy(optionsOp = Some (operation))
493
- def head (operation : Operation ): PathItem = copy(headOp = Some (operation))
494
- def patch (operation : Operation ): PathItem = copy(patchOp = Some (operation))
495
- def trace (operation : Operation ): PathItem = copy(traceOp = Some (operation))
496
- def any (operation : Operation ): PathItem =
488
+ def addGet (operation : Operation ): PathItem = copy(get = Some (operation))
489
+ def addPut (operation : Operation ): PathItem = copy(put = Some (operation))
490
+ def addPost (operation : Operation ): PathItem = copy(post = Some (operation))
491
+ def addDelete (operation : Operation ): PathItem = copy(delete = Some (operation))
492
+ def addOptions (operation : Operation ): PathItem = copy(options = Some (operation))
493
+ def addHead (operation : Operation ): PathItem = copy(head = Some (operation))
494
+ def addPatch (operation : Operation ): PathItem = copy(patch = Some (operation))
495
+ def addTrace (operation : Operation ): PathItem = copy(trace = Some (operation))
496
+ def any (operation : Operation ): PathItem =
497
497
copy(
498
- getOp = Some (operation),
499
- putOp = Some (operation),
500
- postOp = Some (operation),
501
- deleteOp = Some (operation),
502
- optionsOp = Some (operation),
503
- headOp = Some (operation),
504
- patchOp = Some (operation),
505
- traceOp = Some (operation),
498
+ get = Some (operation),
499
+ put = Some (operation),
500
+ post = Some (operation),
501
+ delete = Some (operation),
502
+ options = Some (operation),
503
+ head = Some (operation),
504
+ patch = Some (operation),
505
+ trace = Some (operation),
506
506
)
507
507
}
508
508
@@ -514,14 +514,14 @@ object OpenAPI {
514
514
ref = None ,
515
515
summary = None ,
516
516
description = None ,
517
- getOp = None ,
518
- putOp = None ,
519
- postOp = None ,
520
- deleteOp = None ,
521
- optionsOp = None ,
522
- headOp = None ,
523
- patchOp = None ,
524
- traceOp = None ,
517
+ get = None ,
518
+ put = None ,
519
+ post = None ,
520
+ delete = None ,
521
+ options = None ,
522
+ head = None ,
523
+ patch = None ,
524
+ trace = None ,
525
525
servers = List .empty,
526
526
parameters = Set .empty,
527
527
)
0 commit comments