[TechDebt]: Document resource annotation formatting #41515
Labels
documentation
Introduces or discusses updates to documentation.
linter
Pertains to changes to or issues with the various linters.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Description
All resources and data sources now utilize annotations to facilitate self-registration and configuration of generated code. We should document the expected format for all potential annotations so contributors can better understand the function of annotations and how they should be formatted. This includes the following annotations.
@SDKResource(...)
@FrameworkResource(...)
@SDKDataSource(...)
@FrameworkDataSource(...)
@Tags(...)
@Testing(...)
The first 4 annotations all have the same format, and should just be documented explicitly. The
@Tags
annotation should document when theidentifier
key is used versus the plan annotation with no arguments. The@Testing
annotation should document all possible arguments and their function (this may already exist in the tags testing docs, but as contributors will likely be reviewing all annotations together it should likely also be documented wherever this final document is published).Once complete, this document should serve as the guidelines for implementing annotation linters.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: