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.