Skip to content

Commit c8e8442

Browse files
committed
[BUG][CORE] Regenerate samples affected by anyOf required-intersection
Cascade from the union->intersection change in DefaultCodegen. Fields previously marked required across all members of an anyOf/oneOf are now optional in the merged composed model. Touches Go, Kotlin, R, C#, Java, JavaScript, PowerShell, Rust, TypeScript, Python, Dart-dio, Terraform samples that contain anyOf composed schemas with overlapping required fields.
1 parent 13f52c1 commit c8e8442

121 files changed

Lines changed: 366 additions & 329 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/others/go/oneof-anyof-required/docs/Object.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Field1** | **string** | Specifies an action name to be used with the Android Intent class. |
8-
**Field2** | **string** | Specifies an action name to be used with the Android Intent class. |
7+
**Field1** | Pointer to **string** | Specifies an action name to be used with the Android Intent class. | [optional]
8+
**Field2** | Pointer to **string** | Specifies an action name to be used with the Android Intent class. | [optional]
99

1010
## Methods
1111

1212
### NewObject
1313

14-
`func NewObject(field1 string, field2 string, ) *Object`
14+
`func NewObject() *Object`
1515

1616
NewObject instantiates a new Object object
1717
This constructor will assign default values to properties that have it defined,
@@ -45,6 +45,11 @@ and a boolean to check if the value has been set.
4545

4646
SetField1 sets Field1 field to given value.
4747

48+
### HasField1
49+
50+
`func (o *Object) HasField1() bool`
51+
52+
HasField1 returns a boolean if a field has been set.
4853

4954
### GetField2
5055

@@ -65,6 +70,11 @@ and a boolean to check if the value has been set.
6570

6671
SetField2 sets Field2 field to given value.
6772

73+
### HasField2
74+
75+
`func (o *Object) HasField2() bool`
76+
77+
HasField2 returns a boolean if a field has been set.
6878

6979

7080
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

samples/client/others/go/oneof-anyof-required/docs/Object2.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Field1** | **string** | Specifies an action name to be used with the Android Intent class. |
8-
**Field2** | **string** | Specifies an action name to be used with the Android Intent class. |
7+
**Field1** | Pointer to **string** | Specifies an action name to be used with the Android Intent class. | [optional]
8+
**Field2** | Pointer to **string** | Specifies an action name to be used with the Android Intent class. | [optional]
99

1010
## Methods
1111

1212
### NewObject2
1313

14-
`func NewObject2(field1 string, field2 string, ) *Object2`
14+
`func NewObject2() *Object2`
1515

1616
NewObject2 instantiates a new Object2 object
1717
This constructor will assign default values to properties that have it defined,
@@ -45,6 +45,11 @@ and a boolean to check if the value has been set.
4545

4646
SetField1 sets Field1 field to given value.
4747

48+
### HasField1
49+
50+
`func (o *Object2) HasField1() bool`
51+
52+
HasField1 returns a boolean if a field has been set.
4853

4954
### GetField2
5055

@@ -65,6 +70,11 @@ and a boolean to check if the value has been set.
6570

6671
SetField2 sets Field2 field to given value.
6772

73+
### HasField2
74+
75+
`func (o *Object2) HasField2() bool`
76+
77+
HasField2 returns a boolean if a field has been set.
6878

6979

7080
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

samples/client/others/go/oneof-discriminator-lookup/docs/Object.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Field1** | **string** | Specifies an action name to be used with the Android Intent class. |
7+
**Field1** | Pointer to **string** | Specifies an action name to be used with the Android Intent class. | [optional]
88
**Type** | Pointer to **string** | | [optional]
99

1010
## Methods
1111

1212
### NewObject
1313

14-
`func NewObject(field1 string, ) *Object`
14+
`func NewObject() *Object`
1515

1616
NewObject instantiates a new Object object
1717
This constructor will assign default values to properties that have it defined,
@@ -45,6 +45,11 @@ and a boolean to check if the value has been set.
4545

4646
SetField1 sets Field1 field to given value.
4747

48+
### HasField1
49+
50+
`func (o *Object) HasField1() bool`
51+
52+
HasField1 returns a boolean if a field has been set.
4853

4954
### GetType
5055

samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/docs/AnyOfUserOrPet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
| Name | Type | Description | Notes |
66
| ------------ | ------------- | ------------- | ------------- |
77
| **id** | **kotlin.Long** | | |
8-
| **username** | **kotlin.String** | | |
9-
| **name** | **kotlin.String** | | |
8+
| **username** | **kotlin.String** | | [optional] |
9+
| **name** | **kotlin.String** | | [optional] |
1010

1111

1212

samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/docs/AnyOfUserOrPetOrArrayString.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
| Name | Type | Description | Notes |
66
| ------------ | ------------- | ------------- | ------------- |
7-
| **id** | **kotlin.Long** | | |
8-
| **username** | **kotlin.String** | | |
9-
| **name** | **kotlin.String** | | |
7+
| **id** | **kotlin.Long** | | [optional] |
8+
| **username** | **kotlin.String** | | [optional] |
9+
| **name** | **kotlin.String** | | [optional] |
1010

1111

1212

samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/docs/UserOrPet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
| Name | Type | Description | Notes |
66
| ------------ | ------------- | ------------- | ------------- |
77
| **id** | **kotlin.Long** | | |
8-
| **username** | **kotlin.String** | | |
9-
| **name** | **kotlin.String** | | |
8+
| **username** | **kotlin.String** | | [optional] |
9+
| **name** | **kotlin.String** | | [optional] |
1010

1111

1212

samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/docs/UserOrPetOrArrayString.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
## Properties
55
| Name | Type | Description | Notes |
66
| ------------ | ------------- | ------------- | ------------- |
7-
| **id** | **kotlin.Long** | | |
8-
| **username** | **kotlin.String** | | |
9-
| **name** | **kotlin.String** | | |
7+
| **id** | **kotlin.Long** | | [optional] |
8+
| **username** | **kotlin.String** | | [optional] |
9+
| **name** | **kotlin.String** | | [optional] |
1010

1111

1212

samples/client/others/terraform/oneof-anyof-required/internal/client/model_object.go

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

samples/client/others/terraform/oneof-anyof-required/internal/client/model_object2.go

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

samples/client/others/terraform/oneof-discriminator-lookup/internal/client/model_object.go

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

0 commit comments

Comments
 (0)