-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Description
When using u128/i128 in messages, the generated schema wrongly outputs "type": "integer" instead of string.
{
"description": "Allocate large amounts of memory without consuming much gas",
"type": "object",
"required": [
"allocate_large_memory"
],
"properties": {
"allocate_large_memory": {
"type": "object",
"required": [
"pages"
],
"properties": {
"pages": {
"type": "integer",
"format": "uint128",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
However, both json-serde and json-serde-wasm use strings for u128/i128. This is probably a bug to be fixed in schemars.
Metadata
Metadata
Assignees
Labels
No labels