Skip to content

Commit

Permalink
add ids to objects
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Feb 3, 2022
1 parent e9fc337 commit 73ab6be
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 1 deletion.
9 changes: 9 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ components:
serviceUnderTest:
type: object
properties:
id:
type: string
description: ID
url:
type: string
description: URL of the service under test
Expand All @@ -135,6 +138,9 @@ components:
Assertion:
type: object
properties:
id:
type: string
description: ID
operationName:
type: string
duration:
Expand All @@ -149,6 +155,9 @@ components:
Result:
type: object
properties:
id:
type: string
description: ID
successful:
$ref: "#/components/schemas/Assertion"
failed:
Expand Down
2 changes: 1 addition & 1 deletion server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:05:47.556158+02:00[Europe/Vilnius]


### Running the server
Expand Down
17 changes: 17 additions & 0 deletions server/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -136,8 +139,12 @@ components:
attributes:
- attributes
- attributes
id: id
numOfSPans: 0
properties:
id:
description: ID
type: string
operationName:
type: string
duration:
Expand All @@ -153,21 +160,27 @@ 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
operationName: operationName
attributes:
- attributes
- attributes
id: id
numOfSPans: 0
properties:
id:
description: ID
type: string
successful:
$ref: '#/components/schemas/Assertion'
failed:
Expand All @@ -179,8 +192,12 @@ components:
Test_serviceUnderTest:
example:
auth: auth
id: id
url: url
properties:
id:
description: ID
type: string
url:
description: URL of the service under test
type: string
Expand Down
4 changes: 4 additions & 0 deletions server/go/model_assertion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 4 additions & 0 deletions server/go/model_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import (
)

type Result struct {

// ID
Id string `json:"id,omitempty"`

Successful Assertion `json:"successful,omitempty"`

Failed Assertion `json:"failed,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions server/go/model_test_service_under_test_.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down

0 comments on commit 73ab6be

Please sign in to comment.