Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated options on generations #370

Open
tilucasoli opened this issue Jul 8, 2024 · 0 comments
Open

Deprecated options on generations #370

tilucasoli opened this issue Jul 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tilucasoli
Copy link
Collaborator

Use case

I'm deprecating some properties of a Spec, but I can't deprecate them directly through the code generation process because I'm using mix_generator to generate the attribute and the utilities.

Proposal

I thought on two different ways to solve this problem

First Proposal

Introduce a deprecated parameter in MixableProperty. When this parameter is set to true, it indicates that all properties generated in Attribute and Spec are deprecated.

@MixableProperty(dto:, utilities:, deprecated: String?)

Second Proposal

Create a new annotation "MixableDeprecated" that is more generic but causes the same effect. The advantage of this approach is that it can be used separately.

@tilucasoli tilucasoli added the enhancement New feature or request label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant