swagger-api / swagger-api/swagger-codegen-generators
[Spring] Cookie parameter not being generated.
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 299
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
Description
Cookie parameters are not being generated for Java language.
Swagger-codegen version
3.0.13
Swagger declaration file content or url
openapi: 3.0.0
info:
title: fun!
version: 1.0.1
servers:
- url: "/v1"
paths:
"/one":
get:
operationId: duplicate
parameters:
- in: cookie
description: cookie
name: jsession
required: true
schema:
type: string
responses:
'200':
description: success
Command line used for generation
Language: spring
Library: spring-boot
InterfaceOnly: true
Steps to reproduce
Use the yaml above to generate sources with the options above.
Related issues/PRs
I found no PRs related, but there was one similar [issue](https://github.com/swagger-api/swagger-codegen-generators/issues/259 reported.
Suggest a fix/enhancement
The fix is going on this repo and swagger-codegen.
PRs:
swagger-codegen-generators https://github.com/swagger-api/swagger-codegen-generators/pull/524
swagger-codegen https://github.com/swagger-api/swagger-codegen/pull/9825
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 OpenAPI YAML and the Spring/spring-boot generation options described in the issue, then inspect the linked swagger-codegen-generators PR 524 and swagger-codegen PR 9825. Done means generating the Java Spring interface from the example and confirming that the required jsession cookie parameter is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi, spring, spring-boot
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 15/100