-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat: provide validation rules via props #1716
Conversation
awesome start! now you’ll need to make sure that option is used here:
otherwise, i dont see where codemirror uses |
you can also add this option to monaco graphql in this PR if you want, to be exhaustive. i was going to add a similar feature to graphiql, codemirror-graphql and monaco now that autocomplete supports external fragment definitions |
this is a very easy to add and powerful feature for [email protected], i really appreciate your help @n1ru4l ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last thing, just needs some basic tests, ideally for graphql-language-service-interface
, codemirror-graphql
and/or graphiql
. i think the first two would be easiest. just pass a simple custom rule and confirm it is used, as an integration test
@n1ru4l do you want to update this PR to use the new table format for props? |
@acao Sorry for not responding, I will give this a try this evening :) |
5bebae4
to
b5ff94a
Compare
Codecov Report
@@ Coverage Diff @@
## main #1716 +/- ##
==========================================
+ Coverage 67.06% 67.07% +0.01%
==========================================
Files 87 87
Lines 4837 4839 +2
Branches 1329 1330 +1
==========================================
+ Hits 3244 3246 +2
Misses 1359 1359
Partials 234 234
Continue to review full report at Codecov.
|
@acao I added a test for codemirror-graphql and graphql-language-service-interface! |
fantastic, thank you! all is looking great for this iteration. merging this and I’ll cut a release by the weekend, if not sooner |
now available in |
No description provided.