Skip to content

Commit

Permalink
ITT-593: Implement RestServiceError for other services (#218)
Browse files Browse the repository at this point in the history
* ITT-593: Unify templates

* ITT-593: Balance platform error handling

* ITT-593: Transfers error handling
  • Loading branch information
michaelpaul authored Jun 14, 2023
1 parent 6ba3837 commit bf7ea8b
Show file tree
Hide file tree
Showing 40 changed files with 2,231 additions and 932 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ models: $(services)

balanceplatform: spec=BalancePlatformService-v2
balanceplatform: serviceName=BalancePlatform
balanceplatform: hasRestServiceError=true
configurationwebhook: spec=BalancePlatformConfigurationNotification-v1
reportwebhook: spec=BalancePlatformReportNotification-v1
transferwebhook: spec=BalancePlatformTransferNotification-v3
Expand All @@ -45,9 +46,10 @@ storedvalue: spec=StoredValueService-v46
storedvalue: serviceName=StoredValue
transfers: spec=TransferService-v3
transfers: serviceName=Transfers
transfers: hasRestServiceError=true
management: spec=ManagementService-v1
management: serviceName=Management
management: templates=templates/rest
management: hasRestServiceError=true
posterminalmanagement: spec=TfmAPIService-v1
posterminalmanagement: serviceName=PosTerminalManagementApi

Expand All @@ -68,7 +70,8 @@ $(services): schema $(openapi-generator-jar) $(goimports)
--skip-validate-spec \
--enable-post-process-file \
--inline-schema-name-mappings PaymentDonationRequest_paymentMethod=CheckoutPaymentMethod \
--additional-properties=serviceName=$(serviceName)
--additional-properties=serviceName=$(serviceName) \
--additional-properties=$(if $(hasRestServiceError),hasRestServiceError=true)
rm -rf $(output)/$(@)/go.{mod,sum}
rm -rf $(output)/$(@)/.openapi-generator/FILES

Expand Down
190 changes: 190 additions & 0 deletions src/balanceplatform/api_account_holders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf7ea8b

Please sign in to comment.