Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworked schema validation #426

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

milessabin
Copy link
Member

@milessabin milessabin commented Jun 15, 2023

  • Schema validation errors are now reported as failures rather than as warnings.
  • Schema validation is now primarily defined in terms of schema types rather than AST type definitions
  • All type references (field arguments and results, and implemented interfaces for both object and interface types, and union members for unions) are now checked.
  • Covariant subtyping between interfaces and implementations is now fully supported.
  • Subtype relation on Type now correctly handles non null and list type wrappers and transitive subtyping between interfaces.
  • Error messages have been made more consistent.

Fixes #68.

+ Schema validation errors are now reported as failures rather than as
  warnings.
+ Schema validation is now primarily defined in terms of schema types
  rather than AST type definitions
+ All type references (field arguments and results, and implemented
  interfaces for both object and interface types, and union members for
  unions) are now checked.
+ Covariant subtyping between interfaces and implementations is now
  fully supported.
+ Subtype relation on Type now correctly handles non null and list type
  wrappers and transitive subtyping between interfaces.
+ Error messages have been made more consistent.
Copy link
Member

@tpolecat tpolecat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! 👍

@milessabin milessabin merged commit bf3822f into main Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate schema
2 participants