Commit 34d53d0
committed
fix(gooddata-api-client): restore null-byte regex pattern dropped by OpenAPI Generator
OpenAPI Generator v6.6.0 silently drops the \x00 literal from regex
patterns in the generated Python code. The DeclarativeColumn model's
`name` field has a spec pattern of `^[^\x00]*$` (reject null bytes,
important for Postgres TEXT columns), but the generator produced the
invalid Python regex `^[^]*$`, causing `re.PatternError: unterminated
character set` at runtime.
Fix the generated file and add a post-generation sed fixup to the
Makefile `api-client` target so future regenerations are patched
automatically.
jira: TRIVIAL
risk: low1 parent 49f3490 commit 34d53d0
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments