Skip to content

[2022-11] if a field is deprecated on a type, it must be deprecated on the interface #1331

@benjie

Description

@benjie

Does this rule already exist? Should it?

Matt: do we have the rule that if a field is deprecated on a type then it must also be deprecated on any interface?
Lee: good question
Ivan: no, we don't have this rule.
Stephen: sounds like another PR; it probably should - right?
Lee: yeah, it's surprising that hasn't come up in the Facebook API.
Matt: interface fields tend to be Hack/PHP; everyone gets the same implementation (same code executed) - deprecating it deprecates it everywhere.
ACTION - validate this.


Note: Action Item issues are reviewed and closed during Working Group
meetings.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions