Commit 7edc591
committed
fix: improve JSON Schema conversion for number.port() and number.sign()
- Add jsonSchema conversion for number.port() rule, producing
type: integer with minimum: 0 and maximum: 65535
- Replace non-standard x-constraint for number.sign() with proper
JSON Schema keywords: exclusiveMinimum: 0 for positive,
exclusiveMaximum: 0 for negative1 parent 06afeb5 commit 7edc591
2 files changed
Lines changed: 28 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
| |||
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
321 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
322 | 335 | | |
323 | 336 | | |
324 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
| 1073 | + | |
1076 | 1074 | | |
1077 | 1075 | | |
1078 | 1076 | | |
1079 | 1077 | | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
| 1078 | + | |
1083 | 1079 | | |
1084 | 1080 | | |
1085 | 1081 | | |
1086 | 1082 | | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
| 1083 | + | |
1090 | 1084 | | |
1091 | 1085 | | |
1092 | 1086 | | |
1093 | 1087 | | |
1094 | 1088 | | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
| 1089 | + | |
1098 | 1090 | | |
1099 | 1091 | | |
1100 | 1092 | | |
1101 | 1093 | | |
1102 | 1094 | | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | 1107 | | |
| |||
0 commit comments