Skip to content

Commit 8e79447

Browse files
authored
Merge pull request #9125 from swagger-api/content-obj-update
added content type property for codegen content object.
2 parents feb8ed2 + c1b1273 commit 8e79447

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenContent.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77

88
public class CodegenContent implements VendorExtendable {
99

10+
private String contentType;
11+
12+
public CodegenContent() {
13+
}
14+
15+
public CodegenContent(String contentType) {
16+
this.contentType = contentType;
17+
}
18+
1019
private List<CodegenParameter> parameters = new ArrayList<CodegenParameter>();
1120
private Map<String, Object> vendorExtensions = new HashMap<>();
1221

@@ -21,6 +30,14 @@ public List<CodegenParameter> getParameters() {
2130
return parameters;
2231
}
2332

33+
public String getContentType() {
34+
return contentType;
35+
}
36+
37+
public void setContentType(String contentType) {
38+
this.contentType = contentType;
39+
}
40+
2441
@Override
2542
public Map<String, Object> getVendorExtensions() {
2643
return vendorExtensions;

0 commit comments

Comments
 (0)