包含选项范围新增支持传路径,例如 key<>:{ path: "$", value:82001 }
This commit is contained in:
parent
fca75602b0
commit
a3d9c90a8d
@ -255,7 +255,7 @@ public abstract class AbstractObjectParser implements ObjectParser {
|
||||
key = entry.getKey();
|
||||
|
||||
try {
|
||||
if (key.startsWith("@") || key.endsWith("@")) {
|
||||
if (key.startsWith("@") || key.endsWith("@") || (key.endsWith("<>") && value instanceof JSONObject)) {
|
||||
if (onParse(key, value) == false) {
|
||||
invalidate();
|
||||
}
|
||||
|
@ -4487,8 +4487,8 @@ public abstract class AbstractSQLConfig implements SQLConfig {
|
||||
for (String key : set) {
|
||||
value = request.get(key);
|
||||
|
||||
if (value instanceof Map) {//只允许常规Object
|
||||
throw new IllegalArgumentException("不允许 " + key + " 等任何key的value类型为 {JSONObject} !");
|
||||
if (key.endsWith("<>") == false && value instanceof Map) {//只允许常规Object
|
||||
throw new IllegalArgumentException(table + ":{ " + key + ":value } 中 value 类型错误!除了 key<>:{} 外,不允许 " + key + " 等其它任何 key 对应 value 的类型为 JSONObject {} !");
|
||||
}
|
||||
|
||||
//解决AccessVerifier新增userId没有作为条件,而是作为内容,导致PUT,DELETE出错
|
||||
|
Loading…
Reference in New Issue
Block a user