rewrite-docs
rewrite-docs copied to clipboard
Document how to write a new recipe that exports a data table
What problem are you trying to solve?
Right now we only document how to export existing data tables:
- https://docs.openrewrite.org/running-recipes/data-tables
- https://docs.openrewrite.org/reference/recipes-with-data-tables
Not how to write and test a new recipe that export data table rows:
- https://github.com/moderneinc/rewrite-recipe-starter/blob/main/src/main/java/com/yourorg/ClassHierarchy.java
- https://github.com/moderneinc/rewrite-recipe-starter/blob/main/src/test/java/com/yourorg/ClassHierarchyTest.java
Describe the solution you'd like
A new recipe doc page, or extension to running-recipes/data-tables that explains how to create a new data table recipe. Explaining
- the transitive field ,
- the need for a separate class with nested row
- which has to be in a
.tablepackage - and how super call and annotations help name the table and columns