fixed more filtering issues and promoted enum condition generation
This commit is contained in:
@ -3,7 +3,24 @@
|
||||
"description": "Filter Synthesis Object-Oriented Composition",
|
||||
"database": {
|
||||
"puncs": [],
|
||||
"enums": [],
|
||||
"enums": [
|
||||
{
|
||||
"id": "enum1",
|
||||
"name": "gender",
|
||||
"module": "core",
|
||||
"source": "gender",
|
||||
"schemas": {
|
||||
"gender": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"male",
|
||||
"female",
|
||||
"other"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"relations": [
|
||||
{
|
||||
"id": "rel1",
|
||||
@ -46,6 +63,9 @@
|
||||
"billing_address": {
|
||||
"type": "address"
|
||||
},
|
||||
"gender": {
|
||||
"type": "gender"
|
||||
},
|
||||
"birth_date": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
@ -170,6 +190,49 @@
|
||||
"expect": {
|
||||
"success": true,
|
||||
"schemas": {
|
||||
"gender": {},
|
||||
"gender.condition": {
|
||||
"type": "condition",
|
||||
"compiledPropertyNames": [
|
||||
"$eq",
|
||||
"$ne",
|
||||
"$nof",
|
||||
"$of",
|
||||
"kind"
|
||||
],
|
||||
"properties": {
|
||||
"$eq": {
|
||||
"type": [
|
||||
"gender",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"$ne": {
|
||||
"type": [
|
||||
"gender",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"$nof": {
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
],
|
||||
"items": {
|
||||
"type": "gender"
|
||||
}
|
||||
},
|
||||
"$of": {
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
],
|
||||
"items": {
|
||||
"type": "gender"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"person": {},
|
||||
"person.filter": {
|
||||
"compiledPropertyNames": [
|
||||
@ -180,6 +243,7 @@
|
||||
"billing_address",
|
||||
"birth_date",
|
||||
"first_name",
|
||||
"gender",
|
||||
"tags"
|
||||
],
|
||||
"properties": {
|
||||
@ -193,6 +257,7 @@
|
||||
"billing_address",
|
||||
"birth_date",
|
||||
"first_name",
|
||||
"gender",
|
||||
"tags"
|
||||
],
|
||||
"type": "person.filter"
|
||||
@ -212,6 +277,7 @@
|
||||
"billing_address",
|
||||
"birth_date",
|
||||
"first_name",
|
||||
"gender",
|
||||
"tags"
|
||||
],
|
||||
"type": "person.filter"
|
||||
@ -262,6 +328,12 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"gender": {
|
||||
"type": [
|
||||
"gender.condition",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"tags": {
|
||||
"type": [
|
||||
"string.condition",
|
||||
|
||||
Reference in New Issue
Block a user