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

[Issue 645] Added Option to exclude deprecation flags. Schema -> Clie… #1082

Closed
wants to merge 2 commits into from

Conversation

harshadbhatia
Copy link

@harshadbhatia harshadbhatia commented Oct 11, 2021

Closes #645

  • Another option is to pass parameter directly instead of implicit.
  • Will update the documentation once we are happy with the code.

)(implicit scalarMappings: ScalarMappings): List[(String, String)] = {
require(packageName.isDefined || !splitFiles, "splitFiles option requires a package name")

val schemaDef = schema.schemaDefinition

implicit val excludeDeprecation: Boolean = excludeClientDeprecation
Copy link
Contributor

@guizmaii guizmaii Oct 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird. Why do you need to do that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was one approach. Another is to just pass a parameter, I had to modify quite a few signatures instead, thought better was to do via implicit instead.

@guizmaii
Copy link
Contributor

@harshadbhatia Can you update the plugins documentation too, please?

@harshadbhatia
Copy link
Author

@harshadbhatia Can you update the plugins documentation too, please?

Yes, just wanted to make sure it is correctly implemented before updating docs. Will add that now

@ghostdogpr
Copy link
Owner

Ah did you see my comment on Discord? Basically I was saying the deprecated attribute also exists on enum values, would be good to support it too 👍

@harshadbhatia
Copy link
Author

harshadbhatia commented Oct 12, 2021 via email

@ghostdogpr
Copy link
Owner

Closing old PRs, but feel free to reopen it targeting the series/2.x branch which is the new default.

@ghostdogpr ghostdogpr closed this Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to codegen for including deprecated fields
3 participants