Skip to content

[BUG] [Java] [Spring Boot] Required path params not marked NotNull #21921

@GregDThomas

Description

@GregDThomas

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Path parameters (which are required) are not marked @NotNull

openapi-generator version

7.15

OpenAPI declaration file content or url

You can see this in the samples.

The operation is DELETE /pet/{petId} - but petId is not marked NotNull despite being required

@ApiParam(value = "Pet id to delete", required = true) @PathVariable("petId") Long petId,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions