Skip to content

feat(codegen): Add WithTypeTransformer#157

Merged
yevgenypats merged 21 commits intomainfrom
feat/with_type_transformer
Sep 21, 2022
Merged

feat(codegen): Add WithTypeTransformer#157
yevgenypats merged 21 commits intomainfrom
feat/with_type_transformer

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats commented Sep 21, 2022

This is take two of #139

Trying to get right the WithTypeTransformer so we wont have to change it in the near future as it's heavilly used external API.

I've also added error handling to all functions as we were basically ignoring all of them and printing to the screen is not the right approach catching those locally and in CI.


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@yevgenypats yevgenypats changed the title Feat/with type transformer feat(codegen): Add WithTypeTransformer Sep 21, 2022
@github-actions github-actions bot added the feat label Sep 21, 2022
@github-actions github-actions bot added feat and removed feat labels Sep 21, 2022
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

Thanks @yevgenypats added a few comments that were discussed in the previous PR

@yevgenypats yevgenypats force-pushed the feat/with_type_transformer branch from 87a9920 to adbb8b9 Compare September 21, 2022 13:17
@yevgenypats yevgenypats enabled auto-merge (squash) September 21, 2022 13:31
@yevgenypats yevgenypats merged commit 714e5c8 into main Sep 21, 2022
@yevgenypats yevgenypats deleted the feat/with_type_transformer branch September 21, 2022 13:33
kodiakhq bot pushed a commit that referenced this pull request Sep 21, 2022
🤖 I have created a release *beep* *boop*
---


## [0.7.12](v0.7.11...v0.7.12) (2022-09-21)


### Features

* **codegen:** Add WithTypeTransformer ([#157](#157)) ([714e5c8](714e5c8))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@erezrokah erezrokah mentioned this pull request Sep 21, 2022
5 tasks
kodiakhq bot pushed a commit that referenced this pull request Sep 21, 2022


#157 changed the behavior of printing a log message on unsupported types (like `interface`) to failing.
~~I'm not sure that's what we want as now the consumer has to skip all the interface fields to make code gen work.~~
~~I kept the failure on custom type transformer as I believe that should be indeed a failure to generate.~~

Changed the code to explicitly specific types

---
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.

5 participants