Skip to content

Comments

Schema Printer - add deprecation reason printing and fix missing deprecated directive on argument#3298

Merged
bbakerman merged 1 commit intographql-java:masterfrom
vadimofd:schema-printer-deprecated-reason-missing
Aug 23, 2023
Merged

Schema Printer - add deprecation reason printing and fix missing deprecated directive on argument#3298
bbakerman merged 1 commit intographql-java:masterfrom
vadimofd:schema-printer-deprecated-reason-missing

Conversation

@vadimofd
Copy link
Contributor

This PR addresses two schema printer items:

  1. Adds deprecation reason printing to better support programmatically provided deprecation reason which is required by schema linters such as GraphQL-ESLint schema recommended rule require-deprecation-reason.
  2. Fixes @deprecated directive missing from printed arguments.

@vadimofd vadimofd marked this pull request as ready for review August 23, 2023 17:05
@bbakerman bbakerman added this to the 2023 October milestone Aug 23, 2023
Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

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

Thanks you for this. The simplifies the code in many ways.

That DeprecatedAppliedDirective4Printing was a lot of a hack. This is much nicer

@bbakerman bbakerman added this pull request to the merge queue Aug 23, 2023
Merged via the queue into graphql-java:master with commit 72645a5 Aug 23, 2023
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