Skip to content

Commit 972cb25

Browse files
committed
handle new package-names options (#115)
1 parent 32e7284 commit 972cb25

File tree

1 file changed

+6
-1
lines changed
  • openapi-processor-test/src/main/groovy/io/openapiprocessor/test

1 file changed

+6
-1
lines changed

openapi-processor-test/src/main/groovy/io/openapiprocessor/test/Mapping.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ class Mapping {
4242

4343
String getPackageName() {
4444
def mapping = getMapping()
45-
return mapping['options']['package-name'] as String
45+
def packageName = mapping['options']['package-name'] as String
46+
if (packageName != null) {
47+
return packageName
48+
}
49+
50+
return mapping['options']['package-names']['base'] as String
4651
}
4752

4853
private Map<String, ?> getMapping() {

0 commit comments

Comments
 (0)