Skip to content

@Parameter 'required' property is always ignored #252

@glockbender

Description

@glockbender

Code example:

@GetMapping(produces = [MediaType.APPLICATION_JSON_VALUE])
    fun getOrders(
        @RequestLimit @Parameter(name = "limit", required = false) limit: Int?,
        @RequestOffset @Parameter(required = false) offset: Int,
        @HeaderUserId userId: UUID,
        @HeaderVisitorId visitorId: UUID
    )

But always parameter marks as 'required' in ui and json schema

Снимок экрана 2019-12-11 в 14 54 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions