Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit c633f92

Browse files
committed
Adds missing string import for binary schema
1 parent c920a94 commit c633f92

File tree

3 files changed

+5
-0
lines changed
  • samples/client/petstore/java/src/main/java/org/openapijsonschematools/paths/fakeuploaddownloadfile/post
    • requestbody/content/applicationoctetstream
    • responses/response200/content/applicationoctetstream
  • src/main/java/org/openapijsonschematools/codegen/generators

3 files changed

+5
-0
lines changed

samples/client/petstore/java/src/main/java/org/openapijsonschematools/paths/fakeuploaddownloadfile/post/requestbody/content/applicationoctetstream/Schema.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package org.openapijsonschematools.paths.fakeuploaddownloadfile.post.requestbody.content.applicationoctetstream;
2+
import org.openapijsonschematools.schemas.JsonSchema;
23

34
public class Schema {
45
// nest classes so all schemas and input/output classes can be public

samples/client/petstore/java/src/main/java/org/openapijsonschematools/paths/fakeuploaddownloadfile/post/responses/response200/content/applicationoctetstream/Schema.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package org.openapijsonschematools.paths.fakeuploaddownloadfile.post.responses.response200.content.applicationoctetstream;
2+
import org.openapijsonschematools.schemas.JsonSchema;
23

34
public class Schema {
45
// nest classes so all schemas and input/output classes can be public

src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,9 @@ public Set<String> getImports(String sourceJsonPath, CodegenSchema schema, Featu
12411241
} else if (schema.format.equals("byte")) {
12421242
// todo implement this
12431243
imports.add("import "+packageName + ".schemas.StringJsonSchema;");
1244+
} else if (schema.format.equals("binary")) {
1245+
// todo implement this
1246+
imports.add("import "+packageName + ".schemas.JsonSchema;");
12441247
}
12451248
} else {
12461249
imports.add("import "+packageName + ".configurations.SchemaConfiguration;");

0 commit comments

Comments
 (0)