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

Fixes #884: unify JSON Object member reference to "property" (from "field" etc) #885

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

tatu-at-datastax
Copy link
Contributor

What this PR does:

Unifies terms used to refer to key/value pairs in JSON Document by using "property", over alternate names like "field"

Which issue(s) this PR fixes:
Fixes #884

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@tatu-at-datastax tatu-at-datastax marked this pull request as ready for review February 20, 2024 18:57
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner February 20, 2024 18:57
@@ -61,9 +61,9 @@ public enum ErrorCode {

SHRED_BAD_EJSON_VALUE("Bad EJSON value"),

SHRED_BAD_VECTOR_SIZE("$vector field can't be empty"),
SHRED_BAD_VECTOR_SIZE("$vector value can't be empty"),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is more general reference (used from multiple places), cannot refer as "property", but that is implied by name $vector -- hence "value".

Copy link
Contributor

@Yuqi-Du Yuqi-Du Feb 20, 2024

Choose a reason for hiding this comment

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

make sense

@tatu-at-datastax tatu-at-datastax merged commit 1492a66 into main Feb 20, 2024
2 checks passed
@tatu-at-datastax tatu-at-datastax deleted the tatu/884-field-to-property branch February 20, 2024 19:51
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Unify terms "field" and "property" in ErrorCode as "property"
3 participants