swagger-api / swagger-api/swagger-codegen
Request: add property format url (for server codegen)
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
It would be convenient to have this type for link validation.
for example, in a symfony it can be done in one line:
@Assert\Url()
Swagger-codegen version
2.3.0
Swagger declaration file content or url
properties:
webhook_url:
type: string
format: url
Command line used for generation
java -jar swagger-codegen-cli.jar generate --input-spec api.swagger.yml --lang php-symfony --output app/bundles
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
Start with the php-symfony generator invoked by swagger-codegen-cli.jar generate and inspect how the YAML format value is handled for generated properties. Verify the generated model for webhook_url; done means the property uses Symfony URL validation comparable to @Assert\Url().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- api, backend, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100