Skip to content

Commit 0c95c54

Browse files
committed
Add a comment that the 'type' format does not exist in OAS 3.0
1 parent cc8982d commit 0c95c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/swagger/codegen/v3/generators/DefaultCodegenConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ private static String getTypeOfSchema(Schema schema) {
10241024
} else if (schema instanceof BinarySchema) {
10251025
return SchemaTypeUtil.BINARY_FORMAT;
10261026
} else if (schema instanceof FileSchema) {
1027-
return "file";
1027+
return "file"; // FIXME: this type does not exist in the OpenAPI 3.0 specification
10281028
} else if (schema instanceof BooleanSchema) {
10291029
return SchemaTypeUtil.BOOLEAN_TYPE;
10301030
} else if (schema instanceof DateSchema) {

0 commit comments

Comments
 (0)