OpenAPITools / OpenAPITools/openapi-generator
Kotlin delegate pattern should declare delegate parameter as nullable
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Constructor declares autowired as required=false but parameter itself is not nullable, as I understand it should be nullable otherwise exception is rised when there is no implementation yet for delegate.
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 at modules/openapi-generator/src/main/resources/kotlin-spring/apiController.mustache around line 14 and inspect the generated delegate constructor. Verify that the generated Kotlin parameter can represent an absent delegate and that generation no longer raises an exception when no delegate implementation exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- api
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100