Skip to content

Expand API resource generation logic to list provided fields and remove TODO prompt #202

@DenTray

Description

@DenTray

Description

What needs to be done?

Modify the API Resource generation logic so that when specific fields are provided during resource generation, these fields are explicitly listed inside the generated API resource file. If fields are provided, remove the generic TODO comment that requests filling the field list. If no fields are provided, keep the TODO comment unchanged.

Expected Outcome

What is the expected result?

The generated API Resource contains a clear list of the fields specified at generation time. The generic TODO comment is removed only if fields are present. This makes the generated resource clearer and reduces manual editing.

Verification Scenarios

How can this be tested?

  • Generate an API Resource with specific fields provided; verify the fields appear listed in the generated resource and that the TODO comment about filling the list is not present.

  • Generate an API Resource without providing fields; verify the TODO comment remains in place for manual completion.

  • Confirm no errors or debug information appear during generation or in the console.


Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions