Skip to content

Commit a99ff18

Browse files
authored
DX-4048 Add Generation Script (#227)
1 parent 6327891 commit a99ff18

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Bandwidth - the Ruby gem for the Bandwidth SDK
1616

1717
### Generated with the command:
18-
`openapi-generator generate -g ruby -i bandwidth.yml -c openapi-config.yml -o ./`
18+
`bash generate.sh`
1919

2020
Bandwidth's Communication APIs
2121

‎custom_templates/README.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{{moduleName}} - the Ruby gem for the {{appName}} SDK
1616

1717
### Generated with the command:
18-
`openapi-generator generate -g ruby -i bandwidth.yml -c openapi-config.yml -o ./`
18+
`bash generate.sh`
1919

2020
{{#appDescriptionWithNewLines}}
2121
{{{.}}}

‎custom_templates/gem.mustache‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ require 'bandwidth-sdk/models/bxml/verb'
4343
require 'bandwidth-sdk/models/bxml/nestable_verb'
4444
require 'bandwidth-sdk/models/bxml/verbs/bridge'
4545
require 'bandwidth-sdk/models/bxml/verbs/conference'
46+
require 'bandwidth-sdk/models/bxml/verbs/connect'
4647
require 'bandwidth-sdk/models/bxml/verbs/custom_param'
48+
require 'bandwidth-sdk/models/bxml/verbs/endpoint'
4749
require 'bandwidth-sdk/models/bxml/verbs/forward'
4850
require 'bandwidth-sdk/models/bxml/verbs/gather'
4951
require 'bandwidth-sdk/models/bxml/verbs/hangup'

‎generate.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
cd "$(dirname "${BASH_SOURCE[0]}")"
4+
5+
npx --yes @openapitools/openapi-generator-cli generate \
6+
-i bandwidth.yml -g ruby -c openapi-config.yml -o . "$@"
7+
8+
bundle install
9+
bundle exec rubocop -A

0 commit comments

Comments
 (0)