Skip to content
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

Add support for @deprecated directive without any deprecation reason #2692

Merged
merged 1 commit into from
Oct 24, 2020

Conversation

martinbonnin
Copy link
Contributor

deprecatedReason will fall back to 'No longer supported'

I also realised that we support @deprecated on input fields and arguments, making apollo-android ahead of the spec :)

Fixes #2664

They will fall back to 'No longuer supported'

Fixes #2664
@@ -80,8 +80,7 @@ internal data class ObjectType(
val type: FieldType,
val description: String,
val isOptional: Boolean,
val isDeprecated: Boolean,
val deprecationReason: String,
val deprecationReason: String?, // null if not deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

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.

[Codegen] support @deprecated with default reason
3 participants