[WIP] remove zod and use actual schema

This commit is contained in:
Eliyan
2025-10-14 11:18:47 +02:00
parent 6dbfe5cb07
commit 0be31357cf
2 changed files with 327 additions and 67 deletions

View File

@@ -22,6 +22,7 @@ This is a **Proof of Concept (PoC)** that demonstrates the conversion of natural
## Installation
1. Install dependencies:
```bash
npm install
```
@@ -63,14 +64,8 @@ The PoC generates ODMDB queries in this format:
```json
{
"object": "seekers",
"condition": [
"prop.dt_create(>=:2025-10-06)"
],
"fields": [
"alias",
"email",
"seekworkingyear"
]
"condition": ["prop.dt_create(>=:2025-10-06)"],
"fields": ["alias", "email", "seekworkingyear"]
}
```
@@ -85,6 +80,7 @@ The PoC understands and generates these ODMDB DSL patterns:
## Field Mappings
Currently supports mapping for seekers object:
- `email` → `email`
- `experience` → `seekworkingyear`
- `job titles` → `seekjobtitleexperience`
@@ -93,6 +89,7 @@ Currently supports mapping for seekers object:
## Schema Context
The PoC can optionally load schema files for context:
- `main.json` - Combined schema definitions
- `lg.json` - Localization/language mappings
@@ -116,4 +113,4 @@ The PoC can optionally load schema files for context:
- `poc.js` - Main PoC implementation
- `package.json` - Dependencies and scripts
- `main.json` - Optional schema context (if available)
- `lg.json` - Optional localization context (if available)
- `lg.json` - Optional localization context (if available)