Commit 1a32217
committed
Remove reduntant checks. #630
Refactor JSON schema type handling and add integer support
This commit simplifies the validation logic for the `type` property in the JSON schema by removing unnecessary conditional checks. It directly retrieves the string value from `typeProperty` and assigns it to `typeKeyword`. Additionally, it enhances the `s_lazyElicitAllowedProperties` dictionary to include support for the `integer` type, allowing it to be recognized as a valid type with its corresponding allowed properties.1 parent c5419c6 commit 1a32217
1 file changed
Lines changed: 3 additions & 14 deletions
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
| 395 | + | |
405 | 396 | | |
406 | 397 | | |
407 | 398 | | |
| |||
415 | 406 | | |
416 | 407 | | |
417 | 408 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | 409 | | |
422 | 410 | | |
423 | 411 | | |
424 | 412 | | |
| 413 | + | |
425 | 414 | | |
426 | 415 | | |
427 | 416 | | |
| |||
0 commit comments