Skip to content

Missing JsonSchema for AssetName #286

@SebastienGllmt

Description

@SebastienGllmt

AssetName is defined in the following way

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions