Open Lo0on opened 8 months ago
protobuf-schema template , model not support array enum
all version
"clientList": { "type": "array", "description": "client name", "items": { "type": "string", "description": "client name", "enum": [ "APP", "M", "PC" ] } }
https://github.com/OpenAPITools/openapi-generator/issues/14892
https://github.com/Lo0on/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/protobuf-schema/model.mustache
modules/openapi-generator/src/main/resources/protobuf-schema/model.mustache row 32 update {{#vendorExtensions.x-protobuf-type}}{{{.}}} {{/vendorExtensions.x-protobuf-type}}{{enumName}} {{name}} = {{vendorExtensions.x-protobuf-index}};
can you please file a PR with the suggested fix when you've time? thank you
Description
protobuf-schema template , model not support array enum
openapi-generator version
all version
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/14892
https://github.com/Lo0on/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/protobuf-schema/model.mustache
Suggest a fix/enhancement
modules/openapi-generator/src/main/resources/protobuf-schema/model.mustache row 32 update {{#vendorExtensions.x-protobuf-type}}{{{.}}} {{/vendorExtensions.x-protobuf-type}}{{enumName}} {{name}} = {{vendorExtensions.x-protobuf-index}};