You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the above command to generate client code for Ruby.
Generated /tmp/gem/lib/openapi_client/models/x.rb contains string interpolation notation in single-quote string. (It dose not work!)
defy=(y)validator=EnumAttributeValidator.new('String',['a'])unlessvalidator.valid?(y)failArgumentError,'invalid value for "y", must be one of #{validator.allowable_values}.'# <= HERE!end@y=yend
Bug Report Checklist
Description
The interpolation in the error message of Ruby's client dose not work.
Swagger-codegen version
Swagger declaration file content or url
https://gist.github.com/autopp/5a7375cd9b521b5e5580ba3b1df40c75
The point to notice in this example contains
enum
in the model.Command line used for generation
Steps to reproduce
/tmp/gem/lib/openapi_client/models/x.rb
contains string interpolation notation in single-quote string. (It dose not work!)Related issues/PRs
Suggest a fix/enhancement
The corresponding template is this.
I think that it should be a double-quote string.
The text was updated successfully, but these errors were encountered: