Closed SebastienGllmt closed 9 months ago
AssetName is defined in the following way
AssetName
pub struct AssetName { pub inner: Vec<u8>, #[derivative( PartialEq = "ignore", Ord = "ignore", PartialOrd = "ignore", Hash = "ignore" )] #[serde(skip)] pub encodings: Option<AssetNameEncoding>, }
This leads to the incorrectly generated JSON type
export interface AssetNameJSON { inner: number[]; }
To avoid this issue, we usually define JsonSchema for X to override the generated definition, but we're missing this for AssetName
JsonSchema for X
I looked through CML to see which types are effected. I feel like there are three types:
{ inner: ... }
[k: string]: unknown;
AssetName
is defined in the following wayThis leads to the incorrectly generated JSON type
To avoid this issue, we usually define
JsonSchema for X
to override the generated definition, but we're missing this forAssetName