Repository navigation
Fix Tables REST serialization, write semantics, and pagination #7529
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -555,6 +555,18 @@ namespace Azure { namespace Data { namespace Tables { namespace _detail { | |
| value, static_cast<Azure::Data::Tables::Models::TableEntityDataType>(type)); | ||
| erasable.push_back(typeFieldName); | ||
| } | ||
| else if (json.at(name).is_boolean()) | ||
| { | ||
| tableEntity.Properties[name] = TableEntityProperty(value, TableEntityDataType::EdmBoolean); | ||
| } | ||
| else if (json.at(name).is_number_integer()) | ||
| { | ||
| tableEntity.Properties[name] = TableEntityProperty(value, TableEntityDataType::EdmInt32); | ||
|
Comment on lines
+562
to
+564
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit (optional): |
||
| } | ||
| else if (json.at(name).is_number_float()) | ||
| { | ||
| tableEntity.Properties[name] = TableEntityProperty(value, TableEntityDataType::EdmDouble); | ||
| } | ||
|
Comment on lines
+558
to
+569
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inferring "Enabled": "true", "Enabled@odata.type": "Edm.Boolean"The payload-format docs require Boolean to be a JSON literal and Int32/Double to be JSON numbers; only
Could |
||
| else | ||
| { | ||
| tableEntity.Properties[name] = TableEntityProperty(value); | ||
|
|
||
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.
Behavior change worth calling out: previously an empty ETag sent no
If-Match, so the service performed Insert-or-Replace/Merge. WithIf-Match: *, a missing entity now returns 404. This matches the REST contract and the other SDKs, but callers relying on the old behavior will break. Suggest moving the changelog entry under "Breaking Changes" (fine for a beta) and checking the "Any breaking changes?" box.