Skip to content

Commit 437a9ff

Browse files
committed
clean up (#115)
1 parent f02fb90 commit 437a9ff

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

openapi-processor-core/src/testInt/kotlin/io/openapiprocessor/core/ProcessorTestSets.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ val ALL_30: List<TestParams> = listOf(
3838
test30_DR("object-nullable-properties"),
3939
test30_DR("object-read-write-properties"),
4040
test30_DR("object-without-properties"),
41-
test30_DR("package"),
41+
test30_DR(name = "packages", openapi = "api/$API_30"),
4242
test30_D_("params-additional"),
4343
test30_D_("params-additional-global"),
4444
test30_DR("params-complex-data-types"), // framework specific
@@ -121,7 +121,7 @@ val ALL_31: List<TestParams> = listOf(
121121
test31_DR("object-nullable-properties"),
122122
test31_DR("object-read-write-properties"),
123123
test31_DR("object-without-properties"),
124-
test31_DR("package"),
124+
test31_DR(name = "packages", openapi = "api/$API_31"),
125125
test31_D_("params-additional"),
126126
test31_D_("params-additional-global"),
127127
test31_DR("params-complex-data-types"), // framework specific
@@ -175,13 +175,17 @@ val ALL_31: List<TestParams> = listOf(
175175

176176
val EXCLUDE_OPENAPI4J = setOf(
177177
// the parser assumes that "type" must be string if a non-standard format is used
178-
"schema-mapping"
178+
"schema-mapping",
179+
// can't get uri of a document
180+
"packages"
179181
)
180182

181183
val EXCLUDE_SWAGGER_30 = setOf(
182184
// the parser is strict about $ref elements and does ignore a description
183185
"javadoc",
184-
"format-eclipse"
186+
"format-eclipse",
187+
// can't get uri of a document
188+
"packages"
185189
)
186190

187191
val EXCLUDE_SWAGGER_31 = setOf<String>()
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
prefix: api
21
items:
32
- inputs/api/openapi30.yaml
43
- inputs/api/openapi31.yaml
54
- inputs/api/mapping.yaml
65
- inputs/main/kotlin/io/openapiprocessor/foo/foo.yaml
76
- inputs/main/kotlin/io/openapiprocessor/foo/resources.yaml
8-
9-
# src/api
10-
# src/main
11-
# src/main/java
12-
# src/main/resources
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
prefix: generated
21
items:
32
- outputs/io/openapiprocessor/foo/Api.java
4-
- outputs/io/openapiprocessor/foo/model/<model>/Foo.java
3+
- outputs/io/openapiprocessor/foo/<model>/Foo.java

0 commit comments

Comments
 (0)