Skip to content

Remove config validation and implement optional Schema validation instead #148

Closed
@vladar

Description

@vladar

At present we do only very shallow validation of schema types, fields and arguments because of performance considerations.

There is also config validation which is unfortunately too limited because it cannot validate fields defined using Closure.

New schema validation should be split into two steps:

  1. Lightweight structural validation when creating schema and type instances
  2. Optional detailed in-depth validation, including interface implementation checks; field, argument names validation, etc

The latter validation could be performed during build-step or when running CLI commands. It will be disabled by default, same as current config validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions