Skip to content

Fields cannot be freely named #15

Description

@mvcds

When I try to create an entity like this...

export default class Foo extends Entity {
  static SCHEMA = {
    id: PropTypes.string,
    expression: {
      validator: PropTypes.string,
      defaultValue: ''
    }
  };
};

...the instantiated object contains the field expresion, but it is an object with two properties: expression (empty string) and errors (false).

Renaming the field to anything else caused it to behave as expected.

The same happens if I name the field as value. It gets two properties: expression (empty string) and errors (false).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions