Skip to content

Apollo 5 - Deprecation Annotation on fields is empty for empty schema declaration #6778

@agrosner

Description

@agrosner

Version

5.0.0-alpha.2+

Summary

Given schema:

type SomeObject {
"""
  id for the badge associated with the reviewer
  """
  reviewer_badge_id: Int @deprecated(reason: "")

}

the outputted field is missing the message on the annotation. This works in 4.x.

@Deprecated
val reviewer_badge_id: Int?

Kotlin requires a message on the annotation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions