Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3736c9d8f0 | |||
| ccca9129b2 |
@ -70,6 +70,10 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date-time"
|
"format": "date-time"
|
||||||
},
|
},
|
||||||
|
"uuid_field": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uuid"
|
||||||
|
},
|
||||||
"tags": {
|
"tags": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -181,6 +185,17 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"uuid.condition": {
|
||||||
|
"type": "condition",
|
||||||
|
"properties": {
|
||||||
|
"$eq": {
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -244,6 +259,7 @@
|
|||||||
"billing_address",
|
"billing_address",
|
||||||
"gender",
|
"gender",
|
||||||
"birth_date",
|
"birth_date",
|
||||||
|
"uuid_field",
|
||||||
"tags",
|
"tags",
|
||||||
"ad_hoc",
|
"ad_hoc",
|
||||||
"$and",
|
"$and",
|
||||||
@ -258,6 +274,7 @@
|
|||||||
"billing_address",
|
"billing_address",
|
||||||
"gender",
|
"gender",
|
||||||
"birth_date",
|
"birth_date",
|
||||||
|
"uuid_field",
|
||||||
"tags",
|
"tags",
|
||||||
"ad_hoc",
|
"ad_hoc",
|
||||||
"$and",
|
"$and",
|
||||||
@ -278,6 +295,7 @@
|
|||||||
"billing_address",
|
"billing_address",
|
||||||
"gender",
|
"gender",
|
||||||
"birth_date",
|
"birth_date",
|
||||||
|
"uuid_field",
|
||||||
"tags",
|
"tags",
|
||||||
"ad_hoc",
|
"ad_hoc",
|
||||||
"$and",
|
"$and",
|
||||||
@ -325,6 +343,12 @@
|
|||||||
"null"
|
"null"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"uuid_field": {
|
||||||
|
"type": [
|
||||||
|
"uuid.condition",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
},
|
||||||
"first_name": {
|
"first_name": {
|
||||||
"type": [
|
"type": [
|
||||||
"string.condition",
|
"string.condition",
|
||||||
@ -396,6 +420,7 @@
|
|||||||
"string.condition": {},
|
"string.condition": {},
|
||||||
"integer.condition": {},
|
"integer.condition": {},
|
||||||
"date.condition": {},
|
"date.condition": {},
|
||||||
|
"uuid.condition": {},
|
||||||
"search": {},
|
"search": {},
|
||||||
"search.filter": {
|
"search.filter": {
|
||||||
"type": "filter",
|
"type": "filter",
|
||||||
|
|||||||
@ -141,6 +141,8 @@ impl Schema {
|
|||||||
if let Some(fmt) = &schema.obj.format {
|
if let Some(fmt) = &schema.obj.format {
|
||||||
if fmt == "date-time" {
|
if fmt == "date-time" {
|
||||||
return Some(vec!["date.condition".to_string()]);
|
return Some(vec!["date.condition".to_string()]);
|
||||||
|
} else if fmt == "uuid" {
|
||||||
|
return Some(vec!["uuid.condition".to_string()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(vec!["string.condition".to_string()])
|
Some(vec!["string.condition".to_string()])
|
||||||
|
|||||||
Reference in New Issue
Block a user