Skip to content

Commit abaede6

Browse files
swagger-cli-update
1 parent cf672fb commit abaede6

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

generator/cybersource-ruby-template/partial_model_generic.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,5 @@
195195
end
196196

197197
{{> base_object}}
198-
end
198+
199+
end

generator/cybersource_ruby_SDK_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rm ../lib/cybersource_rest_client.rb
1616

1717
# Command to generate SDK
1818

19-
java -jar swagger-codegen-cli-2.2.3.jar generate -t cybersource-ruby-template -i cybersource-rest-spec-ruby.json -l ruby -o ../ -c cybersource-ruby-config.json
19+
java -jar swagger-codegen-cli-2.4.38.jar generate -t cybersource-ruby-template -i cybersource-rest-spec-ruby.json -l ruby -o ../ -c cybersource-ruby-config.json
2020

2121
sed -i "s|select_header_content_type(\["\'"application\/json;charset=utf-8|select_header_content_type(\["\'"\*\/\*|g" ../lib/cybersource_rest_client/api/secure_file_share_api.rb
2222
#sed -i 's/$/\r/' ../lib/cybersource_rest_client/api/secure_file_share_api.rb

generator/cybersource_ruby_sdk_gen.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ del ..\lib\cybersource_rest_client.rb
1212

1313
REM Command to generate SDK
1414

15-
java -jar swagger-codegen-cli-2.2.3.jar generate -t cybersource-ruby-template -i cybersource-rest-spec.json -l ruby -o ../ -c %~dp0cybersource-ruby-config.json
15+
java -jar swagger-codegen-cli-2.4.38.jar generate -t cybersource-ruby-template -i cybersource-rest-spec.json -l ruby -o ../ -c %~dp0cybersource-ruby-config.json
1616

1717
powershell -Command "(Get-Content ..\lib\cybersource_rest_client\api\secure_file_share_api.rb) | ForEach-Object { $_ -replace 'select_header_content_type\(\[''\*_\/_\*;charset=utf-8', 'select_header_content_type([''*/*;charset=utf-8' } | Set-Content ..\lib\cybersource_rest_client\api\secure_file_share_api.rb"
1818

Binary file not shown.

0 commit comments

Comments
 (0)