micronaut-projects / micronaut-projects/micronaut-openapi
QueryValue Objects are missing @Format
- Dominant language
- Java
- Stars
- 114
- Forks
- 121
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 25
Description
### Expected Behavior
Given:
```
parameters:
filter:
name: filter
required: true
in: query
style: form
schema:
type: object
properties:
myProp:
type: "string"
```
Generaetd Route:
```
...
suspend fun get(
@QueryValue("filter") filter: GetFilterParameter,
): ...
```
Its missing for MULTI format: `@Format(FORMAT_MULTI)`
The generate only addds this annotation for maps/arrays/ and such but not objects.
### Actual Behaviour
_No response_
### Steps To Reproduce
_No response_
### Environment Information
_No response_
### Example Application
_No response_
### Version
5.0.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the query-parameter annotation generation path and compare how maps and arrays receive FORMAT_MULTI with how object schemas are handled. Reproduce the issue from the provided OpenAPI parameter and verify that the generated Kotlin route includes @Format(FORMAT_MULTI) for the object query value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin, openapi
- Domain
- backend-api-design, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 66/100