-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Add override_columns to openapi transformer #22
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
Conversation
| name=key, type=column_type, description=value.get("description") | ||
| ) | ||
| override_column = get_column_by_name(override_columns, key) | ||
| if override_column is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if override_column is not None: | |
| if override_column: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think better is not None in python in case it evaluates to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false would be falsy, also it's either a Column or None? I think this is the Pythonic way.
Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
🤖 I have created a release *beep* *boop* --- ## [0.0.9](v0.0.8...v0.0.9) (2023-08-02) ### Features * Add override_columns to openapi transformer ([#22](#22)) ([a53bb0e](a53bb0e)) * Wire logging with cli flags ([#26](#26)) ([106781b](106781b)) ### Bug Fixes * Add better logging for scheduler ([#24](#24)) ([505f94b](505f94b)) * Add more command-line args, use standard logging ([#29](#29)) ([5d52af9](5d52af9)) * Emit migrate messages for child relations ([#21](#21)) ([536e163](536e163)) * Fix column resolver resource set ([#23](#23)) ([9936ced](9936ced)) * Fix exception logging ([#18](#18)) ([2a5996b](2a5996b)) * Fix extension type definitions ([#20](#20)) ([146c549](146c549)) * Fix JSON type handling ([#19](#19)) ([c0cdf55](c0cdf55)) * Fix race in scheduler ([#25](#25)) ([17fee27](17fee27)) * Log error on table resolver exception/error ([#16](#16)) ([a1b07e8](a1b07e8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
No description provided.