Add first-draf errors
This commit is contained in:
parent
19900bdd29
commit
75d9ba198c
2 changed files with 29 additions and 14 deletions
27
okap-errors.proto
Normal file
27
okap-errors.proto
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
option go_package = "whiteboxsystems.nl/okap";
|
||||||
|
|
||||||
|
enum OKAPErrorCode {
|
||||||
|
None = 0;
|
||||||
|
// Invalide configuratie voor de gekozen methode
|
||||||
|
InvalidXISAuthConfiguration = 1;
|
||||||
|
// Onbekende reference meegegeven
|
||||||
|
UnkownReference = 2;
|
||||||
|
// Invalide registratietoken voor deze reference
|
||||||
|
InvalidRegistrationToken = 3;
|
||||||
|
// Onbekende service
|
||||||
|
UnknownService = 4;
|
||||||
|
// Onbekende protocol
|
||||||
|
UnknownProtocol = 5;
|
||||||
|
// Invalide procotol configuratie voor het aangegeven protocol
|
||||||
|
InvalidProcotolConfig = 6;
|
||||||
|
// Authenticatie methode onbekend
|
||||||
|
UnknownAuthMethod = 7;
|
||||||
|
// Invalide authorizatie configuratie voor het aangegeven protocol
|
||||||
|
InvalidProcotolAuthConfig = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message OKAPError {
|
||||||
|
OKAPErrorCode code = 1;
|
||||||
|
string message = 2;
|
||||||
|
}
|
16
okap.proto
16
okap.proto
|
@ -1,4 +1,5 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
import "okap-errors.proto";
|
||||||
option go_package = "whiteboxsystems.nl/okap";
|
option go_package = "whiteboxsystems.nl/okap";
|
||||||
|
|
||||||
service OKAP {
|
service OKAP {
|
||||||
|
@ -41,18 +42,6 @@ message ProtocolAuthConfiguration {
|
||||||
map<string, string> configuration = 2;
|
map<string, string> configuration = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Errors is meta met bovenliggende GRPC error INVALID_ARGUMENT err
|
|
||||||
// Enum met door ons gedefinieerde codes
|
|
||||||
|
|
||||||
// enum ErrorCode {
|
|
||||||
//
|
|
||||||
//}
|
|
||||||
|
|
||||||
// message Error {
|
|
||||||
// ErrorCode code = 1;
|
|
||||||
// string message = 2;
|
|
||||||
// }
|
|
||||||
|
|
||||||
enum SubscriptionPolicy {
|
enum SubscriptionPolicy {
|
||||||
subnone = 0;
|
subnone = 0;
|
||||||
optin = 1;
|
optin = 1;
|
||||||
|
@ -166,8 +155,7 @@ message PatientRegistrationData {
|
||||||
|
|
||||||
message PatientRegistrationError {
|
message PatientRegistrationError {
|
||||||
int32 index = 1;
|
int32 index = 1;
|
||||||
int32 code = 2;
|
OKAPError error = 2;
|
||||||
string message = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdatePatientRegistrationRequest {
|
message UpdatePatientRegistrationRequest {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue