Skip to content

Support multiple types on a field descriptor and assert that actual type matches one of them #352

Open
@victorherraiz

Description

@victorherraiz

The following code produce a nice output in the type column, but It does not perform the assertion:

fieldWithPath("uid").type(Arrays.asList(JsonFieldType.STRING, JsonFieldType.NULL));

Is there a better way to do it?
Would you accept a pull request about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementEnhancement that adds a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions