From 91796aab5050f8eda2d6797c2e4ff1f8627d1e2d Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Wed, 3 Sep 2025 13:45:26 +0100 Subject: [PATCH 1/2] fix: aligned ErrorInfo with API Design Guidelines --- code/API_definitions/simple-edge-discovery.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/API_definitions/simple-edge-discovery.yaml b/code/API_definitions/simple-edge-discovery.yaml index 1ec3268..9aec475 100644 --- a/code/API_definitions/simple-edge-discovery.yaml +++ b/code/API_definitions/simple-edge-discovery.yaml @@ -315,19 +315,19 @@ components: type: object description: Error information required: - - message - status - code + - code properties: - message: - type: string - description: A human readable description of what the event represents status: type: integer description: HTTP response status code code: type: string description: Friendly Code to describe the error + message: + type: string + description: A human readable description of what the event represents RequestBody: description: Common request body to allow optional Device object to be passed From 790fad53e428c7f1f866bdcca765286bdc1382df Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Wed, 3 Sep 2025 13:52:16 +0100 Subject: [PATCH 2/2] fix: removed duplicate property --- code/API_definitions/simple-edge-discovery.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/API_definitions/simple-edge-discovery.yaml b/code/API_definitions/simple-edge-discovery.yaml index 9aec475..913d4a2 100644 --- a/code/API_definitions/simple-edge-discovery.yaml +++ b/code/API_definitions/simple-edge-discovery.yaml @@ -317,7 +317,7 @@ components: required: - status - code - - code + - message properties: status: type: integer