We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0abf0de + c3d1db5 commit fab4fabCopy full SHA for fab4fab
.codegen/error_overrides.py.tmpl
@@ -11,9 +11,9 @@ _ALL_OVERRIDES = [
11
debug_name="{{.Name}}",
12
path_regex=re.compile(r'{{.PathRegex}}'),
13
verb="{{.Verb}}",
14
- status_code_matcher=re.compile(r'{{.StatusCodeMatcher}}'),
15
- error_code_matcher=re.compile(r'{{.ErrorCodeMatcher}}'),
16
- message_matcher=re.compile(r'{{.MessageMatcher}}'),
+ status_code_matcher=re.compile(r'{{replaceAll "'" "\\'" .StatusCodeMatcher}}'),
+ error_code_matcher=re.compile(r'{{replaceAll "'" "\\'" .ErrorCodeMatcher}}'),
+ message_matcher=re.compile(r'{{replaceAll "'" "\\'" .MessageMatcher}}'),
17
custom_error={{.OverrideErrorCode.PascalName}},
18
),
19
{{- end }}
0 commit comments