You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of our extensions need to be implemented on every version of a resource, or none at all.
For example, the genruntime.Defaulter interface was implemented for API version 2021-05-15 of documentdb.SqlRoleAssignment and therefore should also have been implemented for API version 2023-11-15 when that was imported.
Failing to implement that lead to some hairy errors that required considerable debugging.
Describe the improvement
I'm wondering if we can write a convention-test that checks all our resources to verify that if one version implements genruntime.Defaulter, all versions do? Can we generalize this to other interface implementations?
The text was updated successfully, but these errors were encountered:
theunrepentantgeek
changed the title
Detection of missing hand-written code
Detection of missing version-specific extension implementations
May 2, 2024
Describe the current behavior
Some of our extensions need to be implemented on every version of a resource, or none at all.
For example, the
genruntime.Defaulter
interface was implemented for API version2021-05-15
ofdocumentdb.SqlRoleAssignment
and therefore should also have been implemented for API version2023-11-15
when that was imported.Failing to implement that lead to some hairy errors that required considerable debugging.
Describe the improvement
I'm wondering if we can write a convention-test that checks all our resources to verify that if one version implements
genruntime.Defaulter
, all versions do? Can we generalize this to other interface implementations?The text was updated successfully, but these errors were encountered: