Skip to content

Allow overriding built-in type names #508

Description

@Kriskras99

As mentioned by @KitFieldhouse in #476 (comment) this test should pass:

#[test]
fn avro_rs_508_allow_overriding_type_names() -> TestResult {
    let schemas = Schema::parse_list([
    r#"{
        "type": "record",
        "name": "fixed",
        "fields": [{
            "name": "foo",
            "type": "string"
        }]
    }"#,
    r#"{
        "type": "record",
        "name": "Spam",
        "fields": [{
            "name": "bar",
            "type": "fixed"
        }]
    }"#
    ])?;

    Ok(())
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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