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
[TS] Add support for fixed length arrays on Typescript (#5864) (#7021) #7581
[TS] Add support for fixed length arrays on Typescript (#5864) (#7021) #7581
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
8ced3c0
to
643d5b2
Compare
643d5b2
to
ddd29d9
Compare
141d9a4
to
46e615c
Compare
37f3058
to
4f93049
Compare
646525f
to
c4d3d0d
Compare
…oogle#7021) * Typescript / Javascript don't have fixed arrays but it is important to support these languages for compatibility. * Generated TS code checks the length of the given array and do truncating / padding to conform to the schema. * Supports the both standard API and Object Based API. * Added a test. Co-authored-by: Mehmet Baker <mehmet.baker@zerodensity.tv> Signed-off-by: Bulent Vural <bulent.vural@zerodensity.tv> Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
c4d3d0d
to
cda288f
Compare
@bjornharrtell Could you take a look |
@dbaileychess I think this generally looks good and is a welcome addition. |
Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
Added c716af8 to resolve review conversations. I left one open with a question to clarify. |
Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
Signed-off-by: Bülent Vural <bulent.vural@zerodensity.tv>
Adds full support for fixed length arrays to TS gen. Includes a test as well.