-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Field options for types #1375
Comments
First of all, you must use the canonical name for the annotation: message M {
DeprecatedType the_field = 1 [(scalapb.field).annotations = "@scala.annotation.nowarn"];
} secondly, in case of use of deprecated type Can you try to reproduce it with canonical annotation name? |
@enzief , see https://scalapb.github.io/docs/customizations#adding-annotations for documentation on |
Hi @enzief , were you able to check if the suggestions above work for your use case? |
They work. Thank you @thesamet . |
Motivation: allow Scala annotations to be added after type ascription of a message field.
For example, it's impossible to append
@nowarn
to a deprecated class. We should be able to do this:to generate
The text was updated successfully, but these errors were encountered: