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

Match LoadArraySchemaResponse property names with core capnp spec. #473

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shaunrd0
Copy link
Contributor

@shaunrd0 shaunrd0 commented Aug 5, 2024

This updates the property names for LoadArraySchemaResponse to match those in Core. This came up after debugging issues unmarshaling LoadArraySchemaResponse in REST unit tests. IIUC the property names for the OpenAPI specification must match the field names in core's capnproto specification.

Alternatively I can open a PR in core to use snake case across the board, or open to other suggestions if there is another way to make this work without identical property names.

Copy link
Contributor

@NullHypothesis NullHypothesis left a comment

Choose a reason for hiding this comment

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

Nice find! 🎉

@@ -4816,9 +4816,9 @@ definitions:
description: Contains the latest schema and all schemas for the opened array
type: object
properties:
latest_array_schema:
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we add a comment here, explaining that this must match what core expects?

Copy link
Member

Choose a reason for hiding this comment

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

Right, I was thinking along the same lines, how to avoid that very nasty issue in the future (great job finding it!!).

Since there is no automated way, maybe adding a comment in this file in a very visible way and updating our own documentation could help a bit: https://github.com/TileDB-Inc/TileDB-Cloud-REST/blob/7c23501a9d7d491bc09028b5cb8c223d68c306c7/docs/UpgradeCapnpSchemas.md

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.

3 participants