Closed noahdietz closed 3 months ago
GCS also ran into this one. We've got a singleton resource, and the linter wants us to give it a plural
annotation that won't be used.
@BrandonY you know I was just thinking about this the other day, because there was a YAQS regarding Singleton resources & pseudo-collection methods. There is technically a provision in AIP-156 that allows services to implement a Standard List + Reading across collections to list all Singleton resources for a parent collection: https://google.aip.dev/156#support-for-standard-list. I think we might want to still have it "just in case". I think it might seem silly at first but will be positive for future proofing. Going to bring it up in the next API design meeting
Ok we are going to require that Singletons also have the plural
annotation for future proofing reasons, especially b.c there are viable uses for a plural singleton word (see above examples). Will need to update the AIP as well.
SGTM, thanks!
If we can detect that a resource definition represents a Singleton, the
plural
annotation shouldn't be necessary.Unless we know there are use cases for it, or if we want to enforce its presence regardless of Singleton status, it should be excused.