Cannot find symbol 'allowableValues' in pathParams template with oas3 and JavaSpring
Created by: agmyrek
Description
Defining an enum schema in parameters object will cause the following compiling error:
'cannot find symbol': allowableValues
You can see the causing code here:
The field "allowableValues" no longer exists in the annotation @Parameter
from io.swagger.v3.oas.annotations
openapi-generator version
5.3.1
OpenAPI declaration file content or url
openapi: 3.0.3
paths:
/api/{myEnum}:
post:
parameters:
- name: myEnum
in: path
required: true
schema:
$ref: '#/components/schemas/MyEnum'
components:
schemas:
MyEnum:
type: string
enum:
- A
- B
- C
Generation Details
I am using the maven plugin with the following config option:
<oas3>true</oas3>
Steps to reproduce
generate with maven plugin
Suggest a fix
Remove "allowableValues" from the template and use the @Schema
annotation