| { |
| "tests": [ |
| { |
| "description": "update-paths: special characters", |
| "comment": "FieldPaths can contain special characters.", |
| "updatePaths": { |
| "docRefPath": "projects/projectID/databases/(default)/documents/C/d", |
| "fieldPaths": [ |
| { |
| "field": [ |
| "*", |
| "~" |
| ] |
| }, |
| { |
| "field": [ |
| "*", |
| "`" |
| ] |
| } |
| ], |
| "jsonValues": [ |
| "1", |
| "2" |
| ], |
| "request": { |
| "database": "projects/projectID/databases/(default)", |
| "writes": [ |
| { |
| "update": { |
| "name": "projects/projectID/databases/(default)/documents/C/d", |
| "fields": { |
| "*": { |
| "mapValue": { |
| "fields": { |
| "`": { |
| "integerValue": "2" |
| }, |
| "~": { |
| "integerValue": "1" |
| } |
| } |
| } |
| } |
| } |
| }, |
| "updateMask": { |
| "fieldPaths": [ |
| "`*`.`\\``", |
| "`*`.`~`" |
| ] |
| }, |
| "currentDocument": { |
| "exists": true |
| } |
| } |
| ] |
| } |
| } |
| } |
| ] |
| } |