swagger-api / swagger-api/swagger-codegen
[PHP][Lumne] Issue with `pattern` (regular expression) in PHP Lumen
Open
Nobody has claimed this yet.
Issue: Bug
Server: PHP
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Issue with pattern (regular expression) in PHP Lumen.
if (!preg_match("/^[A-Z].", $input['pattern_without_delimiter'])) {
throw new \InvalidArgumentException('invalid value for $pattern_without_delimiter when calling FakeApi.testEndpointParameters, must conform to the pattern /^[A-Z]..');
}
Swagger-codegen version
Latest master (Aug 2016)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open samples/server/petstore/lumen/lib/app/Http/Controllers/FakeApi.php at the referenced validation code and reproduce the reported behavior with the pattern input. Trace how this sample is generated and compare the regular-expression handling with the issue's stated expectation before defining the required fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100