From 014d323eb080e2111abb06fbffa8790424cb3bde Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Wed, 3 Nov 2021 14:45:15 +0500 Subject: [PATCH 1/3] test(be): pass dredd tests --- api-docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api-docs.yml b/api-docs.yml index 09094189e..5be278334 100644 --- a/api-docs.yml +++ b/api-docs.yml @@ -307,8 +307,10 @@ definitions: minimum: 1 alias: type: string + example: Test playbook: type: string + example: test.yml arguments: type: string description: @@ -338,8 +340,10 @@ definitions: minimum: 1 alias: type: string + example: Test playbook: type: string + example: test.yml arguments: type: string description: From 36ec69a37bfdb378366cabef29e8e9dbee6457c6 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Wed, 3 Nov 2021 15:28:46 +0500 Subject: [PATCH 2/3] test(be): fix dredd tests --- api-docs.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api-docs.yml b/api-docs.yml index 5be278334..bfb0b40fd 100644 --- a/api-docs.yml +++ b/api-docs.yml @@ -122,6 +122,7 @@ definitions: properties: name: type: string + example: Test alert: type: boolean Project: @@ -132,6 +133,7 @@ definitions: minimum: 1 name: type: string + example: Test created: type: string pattern: ^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-[0-9]{2}T\d{2}:\d{2}:\d{2}Z$ @@ -153,6 +155,7 @@ definitions: type: integer minimum: 1 x-example: 2 + AccessKey: type: object properties: @@ -160,6 +163,7 @@ definitions: type: integer name: type: string + example: Test type: type: string enum: [none,ssh,login_password] @@ -171,6 +175,7 @@ definitions: properties: name: type: string + example: Test project_id: type: integer minimum: 1 @@ -178,6 +183,8 @@ definitions: type: string json: type: string + example: '{}' + Environment: type: object properties: @@ -186,6 +193,7 @@ definitions: minimum: 1 name: type: string + example: Test project_id: type: integer minimum: 1 @@ -193,12 +201,14 @@ definitions: type: string json: type: string + example: '{}' InventoryRequest: type: object properties: name: type: string + example: Test project_id: type: integer minimum: 1 @@ -220,6 +230,7 @@ definitions: type: integer name: type: string + example: Test project_id: type: integer inventory: @@ -237,6 +248,7 @@ definitions: properties: name: type: string + example: Test project_id: type: integer git_url: @@ -250,6 +262,7 @@ definitions: type: integer name: type: string + example: Test project_id: type: integer git_url: From df96f0c895541d17f3d8d4c4c0c93499318aa90b Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Wed, 3 Nov 2021 15:29:51 +0500 Subject: [PATCH 3/3] test(be): fix dredd tests --- api-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api-docs.yml b/api-docs.yml index bfb0b40fd..5b9a6f96a 100644 --- a/api-docs.yml +++ b/api-docs.yml @@ -326,6 +326,7 @@ definitions: example: test.yml arguments: type: string + example: '[]' description: type: string example: Hello, World! @@ -359,6 +360,7 @@ definitions: example: test.yml arguments: type: string + example: '[]' description: type: string example: Hello, World!