Skip to content

Commit

Permalink
fix docgen build error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcdx committed Jun 3, 2022
1 parent 5e6db2a commit 53e0743
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ func ExampleValue(method string, t, parent reflect.Type) interface{} {
}
case reflect.Interface:
return struct{}{}
case reflect.Int64:
return 0
}

panic(fmt.Sprintf("No example value for type: %s (method '%s')", t, method))
Expand Down
20 changes: 20 additions & 0 deletions documentation/en/api-v0-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
* [SyncValidateTipset](#SyncValidateTipset)
* [Wallet](#Wallet)
* [WalletBalance](#WalletBalance)
* [WalletCustomMethod](#WalletCustomMethod)
* [WalletDefaultAddress](#WalletDefaultAddress)
* [WalletDelete](#WalletDelete)
* [WalletExport](#WalletExport)
Expand Down Expand Up @@ -7051,6 +7052,25 @@ Inputs:

Response: `"0"`

### WalletCustomMethod
yc wallet security WalletCustomMethod
WalletCustomMethod wallet extension operation


Perms: admin

Inputs:
```json
[
0,
[
{}
]
]
```

Response: `{}`

### WalletDefaultAddress
WalletDefaultAddress returns the address marked as default in the wallet.

Expand Down
20 changes: 20 additions & 0 deletions documentation/en/api-v1-unstable-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
* [SyncValidateTipset](#SyncValidateTipset)
* [Wallet](#Wallet)
* [WalletBalance](#WalletBalance)
* [WalletCustomMethod](#WalletCustomMethod)
* [WalletDefaultAddress](#WalletDefaultAddress)
* [WalletDelete](#WalletDelete)
* [WalletExport](#WalletExport)
Expand Down Expand Up @@ -7366,6 +7367,25 @@ Inputs:

Response: `"0"`

### WalletCustomMethod
yc wallet security WalletCustomMethod
WalletCustomMethod wallet extension operation


Perms: admin

Inputs:
```json
[
0,
[
{}
]
]
```

Response: `{}`

### WalletDefaultAddress
WalletDefaultAddress returns the address marked as default in the wallet.

Expand Down

0 comments on commit 53e0743

Please sign in to comment.