[BUG] Regression in 5.0.1 ruby faraday generator
Created by: cgfarmer4
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
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
After upgrading to 5.0.1
, I receive a syntax error in one of my models. This does not happen on 5.0.0
. I tried deleting all my .mustache
templates to see if it was related but it was not. None of them touch the models generation. We are modding:
api_client_faraday_partial.mustached
api_client.mustache
gemspec.mustache
plaid/models/asset_report_create_request.rb:114: syntax error, unexpected `end', expecting ')' (SyntaxError)
end
openapi-generator version
docker cli 5.0.1
OpenAPI declaration file content or url
https://github.com/plaid/plaid-openapi/blob/master/2020-09-14.yml
Generation Details
docker run --rm -v $(CURRENT_DIR):/local openapitools/openapi-generator-cli:v5.0.0 generate -g ruby \
-i local/$(OPENAPI_FILE) \
-o local/$(OUTPUT_FOLDER)/generated-ruby \
--global-property=apiTests=false,modelTests=false \
--library=faraday \
-p gemName=plaid,gemRequiredRubyVersion=">= 2.7.1",gemVersion=$(RUBY_PACKAGE_VERSION) \
-t local/templates/ruby
Steps to reproduce
Run bundle install
then bundle exec rake test
and receive the error.