我正在尝试使用以下 json 数据进行发布请求。但我需要一个字段,即“注释”作为空字符串值传递。当我这样通过时,出现错误:
'一个或多个参数值无效:AttributeValue 不能包含空字符串'。
我该如何解决这个问题?
//json data which i need to post
{
"storeId": "106",
"addressId": "1",
"managerId": "1",
"name": "Syammohan",
"contactNo": "9656985685",
"notes": "",
"bookingType": "Weddding Consult",
"bookingDate": "2019-05-02",
"bookingTime": "09:00 am"
}
function bookingDone(employee) {
var {
storeId,
addressId,
managerId,
name,
contactNo,
notes,
bookingType,
bookingStatus,
bookingTime
} = req.body
console.log("notes", notes);
const params = {
TableName: "Booking",
Item: {
id: id,
storeId: storeId,
addressId: addressId,
managerId: managerId,
name: name,
contactNo: contactNo,
notes: notes,
bookingType: bookingType,
bookingStatus: bookingStatus, …
Run Code Online (Sandbox Code Playgroud) 当我需要在 cli 中使用命令 ngserve --open 打开我的 Angular 项目时。它显示错误“尝试查找引导程序代码时出现错误,但找不到。” 指定可静态分析的引导代码或将 EntryModule 传递给插件选项。'