Skip to content

For controller generator, infer id omitted from the existing model class file #3757

@jannyHou

Description

@jannyHou

Suggestion

connect to #2036
This is a follow-up story of PR #3667.
As a quick fix, that PR fixes the controller generator by adding a new prompt isIdOmitted, and creating the corresponding controller class differently.

To improve the user experience, we should infer the id omitted or not from the existing model class, if successes, skip the prompt that asks the same question.

Use Cases

In the controller generator, we should Infer whether id is required from the model class, if successes, skip the prompt that asks the same question.

Acceptance criteria

  • In the controller generator, we infer whether id is required from the model class, if successes, then skip the prompt "is id required". See discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions