Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ids to objects #5

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -135,6 +139,10 @@ components:
Assertion:
type: object
properties:
id:
type: string
description: ID
readOnly: true
operationName:
type: string
duration:
Expand All @@ -149,6 +157,10 @@ components:
Result:
type: object
properties:
id:
type: string
description: ID
readOnly: true
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:10:22.177509+02:00[Europe/Vilnius]


### Running the server
Expand Down
20 changes: 20 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,13 @@ components:
attributes:
- attributes
- attributes
id: id
numOfSPans: 0
properties:
id:
description: ID
readOnly: true
type: string
operationName:
type: string
duration:
Expand All @@ -153,21 +161,28 @@ 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
readOnly: true
type: string
successful:
$ref: '#/components/schemas/Assertion'
failed:
Expand All @@ -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
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