Skip to content

Object validation torture (AOR proposal) #88

@codalogic

Description

@codalogic

I've been thinking about validation of objects. If we have the following JCR:

{ "bar":string, ( "foo":integer | "baz":string ) }

should the following JSON be valid or not:

{ "bar":"thing", "foo":2, "baz": "thingy" }

My feeling is not because the author is saying they want one or the other.

What do others expect?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions