Skip to content

Schema fixes for new API - #3135

Merged
jpadams merged 1 commit into
dagger:cloakfrom
jpadams:jpadams-schema-fixes
Sep 18, 2022
Merged

jpadams merged 1 commit into
dagger:cloakfrom
jpadams:jpadams-schema-fixes

Conversation

@jpadams

@jpadams jpadams commented Sep 18, 2022

Copy link
Copy Markdown
Contributor

Correct some syntax (e.g. missing colons), type names (e.g. Integer -> Int) to make things
consistent.
Adds a root.gql with an empty Query (needed to be without {} like this
https://stackoverflow.com/questions/54322029/graphqljs-query-root-type-must-be-provided).

@jpadams

jpadams commented Sep 18, 2022

Copy link
Copy Markdown
Contributor Author

I know it's working because I can generate docs from it with npx docusaurus docs:generate:graphql and the linter is less angry (though not totally satisfied 😂 #3136

https://discord.com/channels/707636530424053791/1020603304583106560/1020961611445456946

@marcosnils

Copy link
Copy Markdown
Contributor

LGTM shall we add the linter to CI until we find a definitive solution for this? So we don't forget to run the linter manually and commit broken schemas 🙏

Once this new API gets merged into main validation won't be necessary since it'll be done at compile time through Go's graphql parser. Linting will very likely still be needed, so adding the CI part here won't be useless. I see a cloak extension coming? 😱

@jpadams jpadams added the cloak label Sep 18, 2022
@jpadams jpadams added this to the Cloak GA milestone Sep 18, 2022
@jpadams
jpadams merged commit bf8ef7e into dagger:cloak Sep 18, 2022
@jpadams
jpadams deleted the jpadams-schema-fixes branch September 18, 2022 23:35
vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this pull request Sep 28, 2022
@marcosnils marcosnils mentioned this pull request Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants