Skip to content

codegen: breaking change for ID! types #522

@ajwerner

Description

@ajwerner

#476 is a welcome enough change, but breaks code which use ID! types in their schemas. The function used for deserialization returns an Option<String> even if the field is String:

     |
2140 |         #[derive(Deserialize, Serialize, Debug)]
     |                  ^^^^^^^^^^^ expected `String`, found `Option<String>`

cc @willfindlay / @tomhoule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions