Skip to content

Commit 25c2656

Browse files
committed
cleanup OAS test
1 parent 40e7caa commit 25c2656

File tree

8 files changed

+2
-205
lines changed

8 files changed

+2
-205
lines changed

modules/openapi-generator/src/test/resources/3_0/go/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,22 +1386,14 @@ components:
13861386
type: object
13871387
required:
13881388
- bar
1389-
- baz
13901389
properties:
13911390
bar:
13921391
$ref: '#/components/schemas/Bar'
1393-
baz:
1394-
$ref: '#/components/schemas/Baz'
13951392
map:
13961393
$ref: '#/components/schemas/MapWithDateTime'
13971394
Bar:
13981395
type: string
13991396
default: bar
1400-
Baz:
1401-
type: string
1402-
enum:
1403-
- value1
1404-
default: value1
14051397
Order:
14061398
type: object
14071399
properties:

samples/openapi3/client/petstore/go/go-petstore/.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ docs/ArrayOfNumberOnly.md
2424
docs/ArrayTest.md
2525
docs/Banana.md
2626
docs/BananaReq.md
27-
docs/Baz.md
2827
docs/Capitalization.md
2928
docs/Cat.md
3029
docs/Category.md
@@ -104,7 +103,6 @@ model_array_of_number_only.go
104103
model_array_test_.go
105104
model_banana.go
106105
model_banana_req.go
107-
model_baz.go
108106
model_capitalization.go
109107
model_cat.go
110108
model_category.go

samples/openapi3/client/petstore/go/go-petstore/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ Class | Method | HTTP request | Description
140140
- [ArrayTest](docs/ArrayTest.md)
141141
- [Banana](docs/Banana.md)
142142
- [BananaReq](docs/BananaReq.md)
143-
- [Baz](docs/Baz.md)
144143
- [Capitalization](docs/Capitalization.md)
145144
- [Cat](docs/Cat.md)
146145
- [Category](docs/Category.md)

samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,6 @@ components:
12881288
Foo:
12891289
example:
12901290
bar: bar
1291-
baz: value1
12921291
map:
12931292
key:
12941293
- 2000-01-23T04:56:07.000+00:00
@@ -1297,8 +1296,6 @@ components:
12971296
bar:
12981297
default: bar
12991298
type: string
1300-
baz:
1301-
$ref: '#/components/schemas/Baz'
13021299
map:
13031300
additionalProperties:
13041301
items:
@@ -1308,16 +1305,10 @@ components:
13081305
type: object
13091306
required:
13101307
- bar
1311-
- baz
13121308
type: object
13131309
Bar:
13141310
default: bar
13151311
type: string
1316-
Baz:
1317-
default: value1
1318-
enum:
1319-
- value1
1320-
type: string
13211312
Order:
13221313
example:
13231314
petId: 6
@@ -2211,7 +2202,6 @@ components:
22112202
example:
22122203
string:
22132204
bar: bar
2214-
baz: value1
22152205
map:
22162206
key:
22172207
- 2000-01-23T04:56:07.000+00:00

samples/openapi3/client/petstore/go/go-petstore/docs/Baz.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

samples/openapi3/client/petstore/go/go-petstore/docs/Foo.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Bar** | **string** | | [default to "bar"]
8-
**Baz** | [**Baz**](Baz.md) | | [default to BAZ_VALUE1]
98
**Map** | Pointer to [**map[string][]time.Time**](array.md) | | [optional]
109

1110
## Methods
1211

1312
### NewFoo
1413

15-
`func NewFoo(bar string, baz Baz, ) *Foo`
14+
`func NewFoo(bar string, ) *Foo`
1615

1716
NewFoo instantiates a new Foo object
1817
This constructor will assign default values to properties that have it defined,
@@ -47,26 +46,6 @@ and a boolean to check if the value has been set.
4746
SetBar sets Bar field to given value.
4847

4948

50-
### GetBaz
51-
52-
`func (o *Foo) GetBaz() Baz`
53-
54-
GetBaz returns the Baz field if non-nil, zero value otherwise.
55-
56-
### GetBazOk
57-
58-
`func (o *Foo) GetBazOk() (*Baz, bool)`
59-
60-
GetBazOk returns a tuple with the Baz field if it's non-nil, zero value otherwise
61-
and a boolean to check if the value has been set.
62-
63-
### SetBaz
64-
65-
`func (o *Foo) SetBaz(v Baz)`
66-
67-
SetBaz sets Baz field to given value.
68-
69-
7049
### GetMap
7150

7251
`func (o *Foo) GetMap() map[string][]time.Time`

samples/openapi3/client/petstore/go/go-petstore/model_baz.go

Lines changed: 0 additions & 109 deletions
This file was deleted.

samples/openapi3/client/petstore/go/go-petstore/model_foo.go

Lines changed: 1 addition & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)