Commit d885a3c
committed
fix(extras): Pydantic
The regular expression used to validate RUTs in `_RutPydanticAnnotation`
results in Pydantic generating an invalid JSON Schema because the
regex uses named groups, which are not supported by the JavaScript
regular expression syntax used by JSON Schema (and OpenAPI).Rut type regex is not compliant with JSON Schema1 parent 7a433b2 commit d885a3c
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
| |||
83 | 99 | | |
84 | 100 | | |
85 | 101 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 102 | + | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
| |||
0 commit comments