Kaynağa Gözat

Fix secret/{id} response example

Fixes a warning that was shown;

    Warning: Other properties are defined at the same level as $ref at
    "#/paths/~1secrets~1{id}/get/responses/200/schema". They are IGNORED according
    to the JsonSchema spec

That resulted in the example not being
rendered in the documentation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 8 yıl önce
ebeveyn
işleme
f3bcea00cd
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      api/swagger.yaml

+ 2 - 1
api/swagger.yaml

@@ -8242,7 +8242,8 @@ paths:
           description: "no error"
           description: "no error"
           schema:
           schema:
             $ref: "#/definitions/Secret"
             $ref: "#/definitions/Secret"
-            example:
+          examples:
+            application/json:
               ID: "ktnbjxoalbkvbvedmg1urrz8h"
               ID: "ktnbjxoalbkvbvedmg1urrz8h"
               Version:
               Version:
                 Index: 11
                 Index: 11