forked from loafle/openapi-generator-original
lumen: Do not HTML escape pattern
This commit is contained in:
parent
a95ade6d2a
commit
cfe1b7a2b4
@ -53,8 +53,8 @@ use Illuminate\Support\Facades\Request;
|
|||||||
}
|
}
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#pattern}}
|
{{#pattern}}
|
||||||
if (!preg_match("{{pattern}}", ${{paramName}}])) {
|
if (!preg_match("{{{pattern}}}", ${{paramName}}])) {
|
||||||
throw new \InvalidArgumentException('invalid value for ${{paramName}} when calling {{classname}}.{{operationId}}, must conform to the pattern {{pattern}}.');
|
throw new \InvalidArgumentException('invalid value for ${{paramName}} when calling {{classname}}.{{operationId}}, must conform to the pattern {{{pattern}}}.');
|
||||||
}
|
}
|
||||||
{{/pattern}}
|
{{/pattern}}
|
||||||
{{/hasValidation}}
|
{{/hasValidation}}
|
||||||
@ -91,8 +91,8 @@ use Illuminate\Support\Facades\Request;
|
|||||||
}
|
}
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#pattern}}
|
{{#pattern}}
|
||||||
if (!preg_match("{{pattern}}", $input['{{paramName}}'])) {
|
if (!preg_match("{{{pattern}}}", $input['{{paramName}}'])) {
|
||||||
throw new \InvalidArgumentException('invalid value for ${{paramName}} when calling {{classname}}.{{operationId}}, must conform to the pattern {{pattern}}.');
|
throw new \InvalidArgumentException('invalid value for ${{paramName}} when calling {{classname}}.{{operationId}}, must conform to the pattern {{{pattern}}}.');
|
||||||
}
|
}
|
||||||
{{/pattern}}
|
{{/pattern}}
|
||||||
{{/hasValidation}}
|
{{/hasValidation}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user