Skip to content

allow all models to be created with no data #112

@dwhieb

Description

@dwhieb

Often a model will need to be instantiated with no data. Though in many cases this violates the DLx spec (for example, the Language model requires a name field), it's necessary to allow this for data entry purposes.

Tests

  it(`new Language()`, function() {
    expect(() => new Language()).not.toThrow();
    expect(() => new Language({})).not.toThrow();
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreCore models and utilitiesfeatureChanges that affect the API

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions