Skip to content

Space.Error should have field of type Object for encapsulation of erroneous data #42

Description

@darko-mijic

I think Space.Error needs a built in field of type Object to support encapsulation of invalid data.

For i18n purposes name of the error class instance + data that is wrong (causing the error) can be enough to generate language specific error message.

I suggest adding something like this to default fields of Space.Error:
data: Match.Optional(Object)

Maybe the name of this field is not ideal.

What do you think @rhyslbw and @DominikGuzei?

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions