You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to augment the input_schema property and restserver.type_check() functionality to handle such cases. We could add a new schema property to the field that contains the nested validation object.
For example:
...
input_schema = {
name = { type = "string"},
age = { type = "number"},
address = {type = "table", schema = {
city = { type = "string" },
street = { type = "string"}
}
}
value_float = { type = "number", optional = true },
contact = {type = "table"
},
...
Activity