Skip to content

Schema with enum array - when deserialized, the enum values are lost #77

@jakubneubauer

Description

@jakubneubauer

When I serialize JsonSchema containing array of enums, it is correctly serialized like this:

{
   "type":"array",
   "items":{"type":"string","enum":["FOO","BAR"]}
}

But when I deserialize it again, I will get an array of string, but the enum set of the StringSchema is empty.
I have a unit test that demonstrates it but I'm not sure how to attach it to the github issue... Will try it after creation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions