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

Add derives option. Add option to apply AuxMessageOptions based on a regex string #1585

Closed
wants to merge 2 commits into from

Conversation

oscar-broman
Copy link

This adds functionality which allows doing the following (among other things):

option (scalapb.options) = {
  aux_message_options: [
      {
          target_regex: "org.example\\..*"
          options: {
              derives: "io.circe.Codec.AsObject"
          }
      }
  ]
};

This will add the derives clause to all messages starting with org.example.

The two features are separate and the ability to use target_regex works for other settings also.

@oscar-broman
Copy link
Author

@thesamet I've modified it such that the checks should succeed now, please re-run!

@thesamet thesamet closed this Oct 17, 2023
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.

2 participants