From 4f5346ad8035bd962a26c05d6bab17ce326d11c7 Mon Sep 17 00:00:00 2001
From: Povilas Versockas
Date: Thu, 3 Feb 2022 12:06:15 +0200
Subject: [PATCH] add ids to objects
---
api/openapi.yaml | 12 ++++++++++++
server/README.md | 2 +-
server/api/openapi.yaml | 20 ++++++++++++++++++++
server/go/model_assertion.go | 4 ++++
server/go/model_result.go | 4 ++++
server/go/model_test_service_under_test_.go | 3 +++
6 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 04d56356dd..0cbd4b32a3 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -119,6 +119,10 @@ components:
serviceUnderTest:
type: object
properties:
+ id:
+ type: string
+ description: ID
+ readOnly: true
url:
type: string
description: URL of the service under test
@@ -135,6 +139,10 @@ components:
Assertion:
type: object
properties:
+ id:
+ type: string
+ description: ID
+ readOnly: true
operationName:
type: string
duration:
@@ -149,6 +157,10 @@ components:
Result:
type: object
properties:
+ id:
+ type: string
+ description: ID
+ readOnly: true
successful:
$ref: "#/components/schemas/Assertion"
failed:
diff --git a/server/README.md b/server/README.md
index 5d3eff692e..f2ae6d9388 100644
--- a/server/README.md
+++ b/server/README.md
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://openapi-generator.tech)
- API version: 0.0.1
-- Build date: 2022-02-03T11:50:37.774935+02:00[Europe/Vilnius]
+- Build date: 2022-02-03T12:10:22.177509+02:00[Europe/Vilnius]
### Running the server
diff --git a/server/api/openapi.yaml b/server/api/openapi.yaml
index 86bfdff8b5..78ced14342 100644
--- a/server/api/openapi.yaml
+++ b/server/api/openapi.yaml
@@ -104,15 +104,18 @@ components:
attributes:
- attributes
- attributes
+ id: id
numOfSPans: 0
- duration: duration
operationName: operationName
attributes:
- attributes
- attributes
+ id: id
numOfSPans: 0
serviceUnderTest:
auth: auth
+ id: id
url: url
properties:
name:
@@ -136,8 +139,13 @@ components:
attributes:
- attributes
- attributes
+ id: id
numOfSPans: 0
properties:
+ id:
+ description: ID
+ readOnly: true
+ type: string
operationName:
type: string
duration:
@@ -153,12 +161,14 @@ components:
Result:
example:
timeStamp: 2000-01-23T04:56:07.000+00:00
+ id: id
failed:
duration: duration
operationName: operationName
attributes:
- attributes
- attributes
+ id: id
numOfSPans: 0
successful:
duration: duration
@@ -166,8 +176,13 @@ components:
attributes:
- attributes
- attributes
+ id: id
numOfSPans: 0
properties:
+ id:
+ description: ID
+ readOnly: true
+ type: string
successful:
$ref: '#/components/schemas/Assertion'
failed:
@@ -179,8 +194,13 @@ components:
Test_serviceUnderTest:
example:
auth: auth
+ id: id
url: url
properties:
+ id:
+ description: ID
+ readOnly: true
+ type: string
url:
description: URL of the service under test
type: string
diff --git a/server/go/model_assertion.go b/server/go/model_assertion.go
index a0aa177f85..ecef2c241d 100644
--- a/server/go/model_assertion.go
+++ b/server/go/model_assertion.go
@@ -10,6 +10,10 @@
package openapi
type Assertion struct {
+
+ // ID
+ Id string `json:"id,omitempty"`
+
OperationName string `json:"operationName,omitempty"`
Duration string `json:"duration,omitempty"`
diff --git a/server/go/model_result.go b/server/go/model_result.go
index 90530c9597..54cf9760a9 100644
--- a/server/go/model_result.go
+++ b/server/go/model_result.go
@@ -14,6 +14,10 @@ import (
)
type Result struct {
+
+ // ID
+ Id string `json:"id,omitempty"`
+
Successful Assertion `json:"successful,omitempty"`
Failed Assertion `json:"failed,omitempty"`
diff --git a/server/go/model_test_service_under_test_.go b/server/go/model_test_service_under_test_.go
index 4429234381..5e1078413d 100644
--- a/server/go/model_test_service_under_test_.go
+++ b/server/go/model_test_service_under_test_.go
@@ -11,6 +11,9 @@ package openapi
type TestServiceUnderTest struct {
+ // ID
+ Id string `json:"id,omitempty"`
+
// URL of the service under test
Url string `json:"url,omitempty"`