Skip to content

Tuples do not respect optional elements #34

Open
@m-haug

Description

@m-haug

I'm trying to parse a schema with an optional trailing content using tuple. However, when I use a schema like

tuple(string(), string(), content(optional: true))

valkyrie panics when trying to access the third element of the tuple if the trailing content is not specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingschemaIssue or PR relating to valkyrie schema

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions