Experimental: add graphql schema parser #146
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For fun and to experiment with outlines I wanted to create a graphql schema parser instead of json schema because I think it’s more human readable and graphql is pretty common these days.
This draft PR is just an experiment but let me know if it’s something that could be interesting for you.
I’m raising this PR mainly for feedback and help. I would like to test it using outlines in python as a lib but as I’m a newbie in python so if you have examples or docs to help me that would be awesome. Also if you have a full example using a jsonschema I can try to migrate to graphql to make sure it works as expected let me know.
You probably have a ton of work so it’s not urgent and I would understand if you don’t have time to help me or if it takes few days before getting an answer.