Bug Report Checklist
Description
The validation annotations are missing from path and query parameters. I.e. the code generated from the example below is missing the @NotNull annotation on the 'requiredParam'.
openapi-generator version
4.1.1
OpenAPI declaration file content or url
openapi: 3.0.2
info:
title: missing validation annotations
version: 1.0.0
paths:
/test:
post:
parameters:
- name: requiredParam
in: query
required: true
schema:
type: integer
responses:
202:
description: a response
content:
'application/json':
schema:
type: object
Command line used for generation
-g jaxrs-jersey
Suggest a fix
include the beanValidation template in query and path parameter templates as well (not only in bodyParams)
Bug Report Checklist
Description
The validation annotations are missing from path and query parameters. I.e. the code generated from the example below is missing the @NotNull annotation on the 'requiredParam'.
openapi-generator version
4.1.1
OpenAPI declaration file content or url
Command line used for generation
-g jaxrs-jersey
Suggest a fix
include the beanValidation template in query and path parameter templates as well (not only in bodyParams)