-
Notifications
You must be signed in to change notification settings - Fork 26
fix: Array types #587
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
fix: Array types #587
Conversation
⏱️ Benchmark resultsComparing with a54dbe7
|
codegen/transformers.go
Outdated
| return schema.TypeJSON, nil | ||
| case reflect.Slice: | ||
| switch v.Elem().Kind() { | ||
| case reflect.Uint8: |
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.
Shouldn't this be in defaultGoTypeToSchemaType?
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.
defaultGoTypeToSchemaType will return TypeInt in this case, effectively resulting in TypeIntArray returned
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.
there's no schema.TypeByte, so no.
yevgenypats
left a comment
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.
Can we add a regression test for that?
@yevgenypats added |
🤖 I have created a release *beep* *boop* --- ## [1.24.1](v1.24.0...v1.24.1) (2023-01-09) ### Bug Fixes * Array types ([#587](#587)) ([73ea82c](73ea82c)) * Sentry errors not sent ([#592](#592)) ([9f1e373](9f1e373)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
GCP:
metadata,binary_dataandetagfields are being switched fromIntArraytoByteArrayK8s:
spec_request,status_certificateswitched fromIntArraytoByteArrayAWS:
aws_amp_workspaces.data,aws_iam_virtual_mfa_devices.base32_string_seedandqr_code_pngAzure: No changes