From 7cb97b084a3f4f8c769b350c23531f43d1c973cb Mon Sep 17 00:00:00 2001 From: Lenny Goodell Date: Wed, 6 Apr 2022 08:00:44 -0700 Subject: [PATCH] fix: Update sample data in swagger for /secret to be correct (#1075) Was missing apiVerion and good example data fixes #1074 Signed-off-by: Leonard Goodell --- openapi/v2/app-functions-sdk.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openapi/v2/app-functions-sdk.yaml b/openapi/v2/app-functions-sdk.yaml index 383aa85d4..6e2066cbb 100644 --- a/openapi/v2/app-functions-sdk.yaml +++ b/openapi/v2/app-functions-sdk.yaml @@ -19,6 +19,10 @@ components: type: string format: uuid example: "e6e8a2f4-eb14-4649-9e2b-175247911369" + apiVersion: + description: "A version number shows the API version in DTOs." + type: string + example: "v2" BaseResponse: description: "Defines basic properties which all use-case specific response DTO instances should support" type: object @@ -111,6 +115,7 @@ components: path: description: Specifies the type or location of the secret to store type: string + example: "credentials" secretData: description: A list of the key/value pairs of secret data to store type: array @@ -126,11 +131,11 @@ components: key: description: The key to identify the secret data type: string - example: "appsecret" + example: "username" value: description: The value of the secret data type: string - example: "appsecret-value" + example: "mqtt-user" required: - key - value