Skip to content

Commit 1d1c3fe

Browse files
committed
Drop supplierSymbol from CreatePatronRequest
1 parent 2fe4fac commit 1d1c3fe

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

broker/oapi/open-api.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,6 @@ components:
500500
requesterSymbol:
501501
type: string
502502
description: Requester symbol
503-
supplierSymbol:
504-
type: string
505-
description: Supplier symbol
506503
required:
507504
- illRequest
508505

@@ -740,15 +737,15 @@ components:
740737

741738
PrNotification:
742739
type: object
743-
title: Notification
740+
title: Notification
744741
description: Patron request notification
745742
properties:
746743
id:
747744
type: string
748745
description: Notification id
749746
fromSymbol:
750747
type: string
751-
description: Symbol of notification sender
748+
description: Symbol of notification sender
752749
toSymbol:
753750
type: string
754751
description: Symbol of notification receiver
@@ -1455,7 +1452,7 @@ paths:
14551452
application/json:
14561453
schema:
14571454
$ref: '#/components/schemas/SseResult'
1458-
1455+
14591456
/state_model/models/{model}:
14601457
get:
14611458
summary: Retrieve a state model by name
@@ -1464,7 +1461,7 @@ paths:
14641461
parameters:
14651462
- in: path
14661463
name: model
1467-
schema:
1464+
schema:
14681465
type: string
14691466
required: true
14701467
description: The name of the statemodel to retrieve

broker/test/patron_request/api/api-handler_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ func TestCrud(t *testing.T) {
106106
id := uuid.NewString()
107107
newPr := proapi.CreatePatronRequest{
108108
Id: &id,
109-
SupplierSymbol: &supplierSymbol,
110109
RequesterSymbol: &requesterSymbol,
111110
Patron: &patron,
112111
IllRequest: utils.Must(common.StructToMap(request)),
@@ -232,7 +231,6 @@ func TestActionsToCompleteState(t *testing.T) {
232231
},
233232
}
234233
newPr := proapi.CreatePatronRequest{
235-
SupplierSymbol: &supplierSymbol,
236234
RequesterSymbol: &requesterSymbol,
237235
Patron: &patron,
238236
IllRequest: utils.Must(common.StructToMap(request)),

0 commit comments

Comments
 (0)