Skip to content

Commit 70dd59c

Browse files
committed
A few improvements in configuration
1 parent 411a718 commit 70dd59c

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ We recommend providing the generator with the options below (whenever available)
3636

3737
```yaml
3838
enumUnknownDefaultCase: true
39+
removeEnumValuePrefix: true
3940
useOneOfDiscriminatorLookup: true
4041
legacyDiscriminatorBehavior: false
4142
disallowAdditionalPropertiesIfNotPresent: false

generators/common/config.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ library: "${GENERATOR_LIBRARY}"
55
templateDir: generators/${GENERATOR}/templates
66
outputDir: generated/artifacts/${GENERATOR}
77
disallowAdditionalPropertiesIfNotPresent: false
8+
enumUnknownDefaultCase: true
9+
removeEnumValuePrefix: true
10+
licenseName: MIT
811
additionalProperties:
912
apiVersion: v3.6
1013
documentationUrl: https://documentation.onfido.com

generators/java/okhttp-gson/config.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ developerName: Onfido
1414
developerOrganization: Onfido
1515
developerOrganizationUrl: http://onfido.com
1616
hideGenerationTimestamp: true
17-
enumUnknownDefaultCase: true
18-
licenseName: MIT
1917
licenseUrl: https://opensource.org/license/mit
2018
scmConnection: scm:git:git://github.com/onfido/onfido-java.git
2119
scmDeveloperConnection: scm:git:git://github.com/onfido/onfido-java.git

generators/php/config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
gitRepoId: onfido-php
22
artifactVersion: ${CLIENT_LIBRARY_VERSION}
3-
enumUnknownDefaultCase: true
43
legacyDiscriminatorBehavior: false
54
composerPackageName: onfido/api
65
invokerPackage: Onfido

generators/ruby/faraday/config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
gitRepoId: onfido-ruby
22
gemVersion: ${CLIENT_LIBRARY_VERSION}
3-
enumUnknownDefaultCase: true
43
gemName: onfido
54
gemHomepage: https://github.com/onfido/onfido-ruby
65
gemLicense: MIT
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/spec/
22
/git_push.sh
33
/docs/
4-
/.travis.yml
4+
/.travis.yml
5+
6+
# For local development
7+
/vendor/bundle

generators/typescript-axios/config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
gitRepoId: onfido-node
22
npmName: "@onfido/api"
33
npmVersion: ${CLIENT_LIBRARY_VERSION}
4-
enumUnknownDefaultCase: true
54
supportsES6: true
65
withNodeImports: true
76
axiosVersion: ^1.7.4

0 commit comments

Comments
 (0)