fixed more filtering issues and promoted enum condition generation

This commit is contained in:
2026-04-24 11:53:54 -04:00
parent e9b5c82809
commit ec867f142f
7 changed files with 337 additions and 30 deletions

View File

@ -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",