Skip to content

Commit ee7e2fd

Browse files
committed
feat: update all clients
1 parent bde0864 commit ee7e2fd

File tree

11 files changed

+26
-25
lines changed

11 files changed

+26
-25
lines changed

clients/dart/wallets_client/doc/CreateWalletInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:affinidi_tdk_wallets_client/api.dart';
1212
| --------------- | ---------- | ----------------------------------------------------- | ---------- |
1313
| **name** | **String** | The name of the wallet | [optional] |
1414
| **description** | **String** | The description of the wallet | [optional] |
15-
| **didMethod** | **String** | Define how DID of your wallet is created and resolved |
15+
| **didMethod** | **String** | Define how DID of your wallet is created and resolved | [optional] |
1616
| **didWebUrl** | **String** | URL of the DID. Required if the did method is web | [optional] |
1717

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

clients/dart/wallets_client/lib/src/model/create_wallet_input.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class CreateWalletInput implements Built<CreateWalletInput, CreateWalle
2828

2929
/// Define how DID of your wallet is created and resolved
3030
@BuiltValueField(wireName: r'didMethod')
31-
CreateWalletInputDidMethodEnum get didMethod;
31+
CreateWalletInputDidMethodEnum? get didMethod;
3232
// enum didMethodEnum { key, web, };
3333

3434
/// URL of the DID. Required if the did method is web
@@ -72,11 +72,13 @@ class _$CreateWalletInputSerializer implements PrimitiveSerializer<CreateWalletI
7272
specifiedType: const FullType(String),
7373
);
7474
}
75-
yield r'didMethod';
76-
yield serializers.serialize(
77-
object.didMethod,
78-
specifiedType: const FullType(CreateWalletInputDidMethodEnum),
79-
);
75+
if (object.didMethod != null) {
76+
yield r'didMethod';
77+
yield serializers.serialize(
78+
object.didMethod,
79+
specifiedType: const FullType(CreateWalletInputDidMethodEnum),
80+
);
81+
}
8082
if (object.didWebUrl != null) {
8183
yield r'didWebUrl';
8284
yield serializers.serialize(

clients/dart/wallets_client/lib/src/model/create_wallet_input.g.dart

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

clients/java/wallets.client/api/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,6 @@ components:
715715
"^(?!:\\/\\/)([a-zA-Z0-9\\-\\.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-\\\
716716
/]*)?$"
717717
type: string
718-
required:
719-
- didMethod
720718
type: object
721719
UpdateWalletInput:
722720
additionalProperties: false

clients/java/wallets.client/docs/CreateWalletInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| --------------- | ----------------------------------- | ----------------------------------------------------- | ---------- |
77
| **name** | **String** | The name of the wallet | [optional] |
88
| **description** | **String** | The description of the wallet | [optional] |
9-
| **didMethod** | [**DidMethodEnum**](#DidMethodEnum) | Define how DID of your wallet is created and resolved | |
9+
| **didMethod** | [**DidMethodEnum**](#DidMethodEnum) | Define how DID of your wallet is created and resolved | [optional] |
1010
| **didWebUrl** | **String** | URL of the DID. Required if the did method is web | [optional] |
1111

1212
## Enum: DidMethodEnum

clients/java/wallets.client/src/main/java/com/affinidi/tdk/wallets/client/models/CreateWalletInput.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static DidMethodEnum fromValue(String value) {
8181
}
8282

8383
public static final String JSON_PROPERTY_DID_METHOD = "didMethod";
84-
@javax.annotation.Nonnull
84+
@javax.annotation.Nullable
8585
private DidMethodEnum didMethod;
8686

8787
public static final String JSON_PROPERTY_DID_WEB_URL = "didWebUrl";
@@ -141,7 +141,7 @@ public void setDescription(@javax.annotation.Nullable String description) {
141141
this.description = description;
142142
}
143143

144-
public CreateWalletInput didMethod(@javax.annotation.Nonnull DidMethodEnum didMethod) {
144+
public CreateWalletInput didMethod(@javax.annotation.Nullable DidMethodEnum didMethod) {
145145

146146
this.didMethod = didMethod;
147147
return this;
@@ -151,18 +151,18 @@ public CreateWalletInput didMethod(@javax.annotation.Nonnull DidMethodEnum didMe
151151
* Define how DID of your wallet is created and resolved
152152
* @return didMethod
153153
*/
154-
@javax.annotation.Nonnull
154+
@javax.annotation.Nullable
155155
@JsonProperty(JSON_PROPERTY_DID_METHOD)
156-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
156+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
157157

158158
public DidMethodEnum getDidMethod() {
159159
return didMethod;
160160
}
161161

162162

163163
@JsonProperty(JSON_PROPERTY_DID_METHOD)
164-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
165-
public void setDidMethod(@javax.annotation.Nonnull DidMethodEnum didMethod) {
164+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165+
public void setDidMethod(@javax.annotation.Nullable DidMethodEnum didMethod) {
166166
this.didMethod = didMethod;
167167
}
168168

clients/python/wallets_client/affinidi_tdk_wallets_client/models/create_wallet_input.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ class CreateWalletInput(BaseModel):
2828
"""
2929
name: Optional[StrictStr] = Field(default=None, description="The name of the wallet")
3030
description: Optional[StrictStr] = Field(default=None, description="The description of the wallet")
31-
did_method: StrictStr = Field(default=..., alias="didMethod", description="Define how DID of your wallet is created and resolved")
31+
did_method: Optional[StrictStr] = Field(default=None, alias="didMethod", description="Define how DID of your wallet is created and resolved")
3232
did_web_url: Optional[constr(strict=True, max_length=300)] = Field(default=None, alias="didWebUrl", description="URL of the DID. Required if the did method is web")
3333
__properties = ["name", "description", "didMethod", "didWebUrl"]
3434

3535
@validator('did_method')
3636
def did_method_validate_enum(cls, value):
3737
"""Validates the enum"""
38+
if value is None:
39+
return value
40+
3841
if value not in ('key', 'web',):
3942
raise ValueError("must be one of enum values ('key', 'web')")
4043
return value

clients/python/wallets_client/docs/CreateWalletInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| --------------- | ------- | ----------------------------------------------------- | ---------- |
77
| **name** | **str** | The name of the wallet | [optional] |
88
| **description** | **str** | The description of the wallet | [optional] |
9-
| **did_method** | **str** | Define how DID of your wallet is created and resolved |
9+
| **did_method** | **str** | Define how DID of your wallet is created and resolved | [optional] |
1010
| **did_web_url** | **str** | URL of the DID. Required if the did method is web | [optional] |
1111

1212
## Example

clients/python/wallets_client/test/test_create_wallet_input.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def make_instance(self, include_optional) -> CreateWalletInput:
4444
)
4545
else:
4646
return CreateWalletInput(
47-
did_method = 'key',
4847
)
4948
"""
5049

clients/typescript/wallets-client/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface CreateWalletInput {
6262
* @type {string}
6363
* @memberof CreateWalletInput
6464
*/
65-
didMethod: CreateWalletInputDidMethodEnum
65+
didMethod?: CreateWalletInputDidMethodEnum
6666
/**
6767
* URL of the DID. Required if the did method is web
6868
* @type {string}

0 commit comments

Comments
 (0)