From b9328ffd76c22020423080025f4714d27e157070 Mon Sep 17 00:00:00 2001 From: Bas Kloosterman Date: Wed, 2 Nov 2022 09:10:47 +0100 Subject: [PATCH] Update error name --- okapi-errors.proto | 6 +++--- okapi-patient-registration.proto | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/okapi-errors.proto b/okapi-errors.proto index 7abe7ce..12d86be 100644 --- a/okapi-errors.proto +++ b/okapi-errors.proto @@ -1,7 +1,7 @@ syntax = "proto3"; option go_package = "whiteboxsystems.nl/okapi"; -enum OkAPIErrorCode { +enum OKAPIErrorCode { None = 0; // Invalide configuratie voor de gekozen methode InvalidXISAuthConfiguration = 1; @@ -23,7 +23,7 @@ enum OkAPIErrorCode { InvalidPage = 9; } -message OkAPIError { - OkAPIErrorCode code = 1; +message OKAPIError { + OKAPIErrorCode code = 1; string message = 2; } diff --git a/okapi-patient-registration.proto b/okapi-patient-registration.proto index ba7ff4e..994a7ba 100644 --- a/okapi-patient-registration.proto +++ b/okapi-patient-registration.proto @@ -32,7 +32,7 @@ message PatientMeta { message PatientRegistrationError { int32 index = 1; - OkAPIError error = 2; + OKAPIError error = 2; } // Probably do this steaming (also)?