Commit 7decfe1
committed
fix: improve api_constraints handling to support both string and parsed JSON
- Remove TODO comment and workaround for single input limitation
- Add robust JSON parsing with error handling for malformed data
- Support both string (JSON-encoded) and already-parsed constraints
- Only extract data_type when constraint is a valid dict with the field
- Resolves #2141 parent b695e23 commit 7decfe1
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
0 commit comments