Skip to content

Commit f10c10e

Browse files
committed
add schema titles
1 parent e3ea9cb commit f10c10e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/defs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ use schemars::JsonSchema;
22
use serde::{Deserialize, Serialize};
33

44
#[derive(JsonSchema, Serialize, Deserialize, Clone, utoipa::ToSchema)]
5+
#[schema(title = "EVM Address")]
56
/// ### Address
67
/// Used to represent an EVM address. This is a string of length 42 with a `0x` prefix. Non-checksummed addresses are also supported, but will be converted to checksummed.
78
pub struct AddressDef(pub String);
89

910
#[derive(JsonSchema, Serialize, Deserialize, Clone, utoipa::ToSchema)]
11+
#[schema(title = "Bytes")]
1012
/// # Bytes
1113
/// Used to represent "bytes". This is a 0x prefixed hex string.
1214
pub struct BytesDef(pub String);
1315

1416
#[derive(JsonSchema, Serialize, Deserialize, Clone, utoipa::ToSchema)]
17+
#[schema(title = "U256")]
1518
/// # U256
1619
/// Used to represent a 256-bit unsigned integer. Engine can parse these from any valid encoding of the Ethereum "quantity" format.
1720
pub struct U256Def(pub String);

0 commit comments

Comments
 (0)