Skip to content

Add more verbose logging for healJSONSchema and better debug details view in field descriptions #4241

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

Merged
merged 4 commits into from
Aug 5, 2022

Conversation

ardatan
Copy link
Owner

@ardatan ardatan commented Aug 4, 2022

New debug logging for healJSONSchema

JSON Schema loader tries to fix your JSON Schema while creating a final bundle for Mesh. Usually it works and it has a chance to have a different result rather than you expect. In the long term, if you don't fix your JSON Schema, you might get different results once the internals of healJSONSchema is changed.

In order to see which parts of your schema need to be fixed, you can enable the debug mode with DEBUG=healJSONSchema environment variable.

New debug details in the field descriptions with DEBUG=fieldDetails

Now you can see which operation has which HTTP request details in the field description with the new debug mode.
image

@changeset-bot
Copy link

changeset-bot bot commented Aug 4, 2022

🦋 Changeset detected

Latest commit: b5fea83

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
json-machete Minor
@omnigraph/json-schema Minor
@graphql-mesh/json-schema Patch
@omnigraph/openapi Patch
@omnigraph/raml Patch
@graphql-mesh/container Patch
cloudflare-workers Patch
hasura-openbrewery-geodb Patch
hello-world-esm Patch
json-schema-hello-world Patch
json-schema-example Patch
json-schema-fhir Patch
json-schema-subscriptions Patch
reddit-example Patch
@graphql-mesh/new-openapi Patch
@graphql-mesh/raml Patch
nextjs-apollo-example Patch
nextjs-sdk-example Patch
openapi-jira Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 4, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
graphql-mesh ✅ Ready (Inspect) Visit Preview Aug 5, 2022 at 10:16AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-mesh/container 0.1.128-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
@graphql-mesh/json-schema 0.30.7-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
@graphql-mesh/new-openapi 0.5.11-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
@graphql-mesh/raml 0.4.10-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
json-machete 0.11.0-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
@omnigraph/json-schema 0.25.0-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
@omnigraph/openapi 0.7.11-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎
@omnigraph/raml 0.5.62-alpha-20220805100327-b39ee14de npm ↗︎ unpkg ↗︎

@ardatan ardatan changed the title Add more verbose logging for healJSONSchema Add more verbose logging for healJSONSchema and better debug details view in field descriptions Aug 4, 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.

1 participant