File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
src/main/java/com/apiflows/model Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 55
66public class OpenAPIWorkflow {
77
8+ public enum Format {
9+ JSON , YAML
10+ }
11+
812 private String location ;
13+ private String content ;
14+ private Format format ;
15+
916 private String workflowsSpec ;
1017 private Info info ;
1118 private List <SourceDescription > sourceDescriptions = new ArrayList <>();
@@ -20,6 +27,30 @@ public void setLocation(String location) {
2027 this .location = location ;
2128 }
2229
30+ public String getContent () {
31+ return content ;
32+ }
33+
34+ public void setContent (String content ) {
35+ this .content = content ;
36+ }
37+
38+ public Format getFormat () {
39+ return format ;
40+ }
41+
42+ public void setFormat (Format format ) {
43+ this .format = format ;
44+ }
45+
46+ public boolean isJson () {
47+ return Format .JSON .equals (this .format );
48+ }
49+
50+ public boolean isYaml () {
51+ return Format .YAML .equals (this .format );
52+ }
53+
2354 public String getWorkflowsSpec () {
2455 return workflowsSpec ;
2556 }
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public class Parameter {
99 private String value ;
1010 private String target ;
1111 private String style ;
12+ private String $ref = null ;
1213
1314 @ JsonProperty ("name" )
1415 public String getName () {
@@ -53,4 +54,12 @@ public String getStyle() {
5354 public void setStyle (String style ) {
5455 this .style = style ;
5556 }
57+
58+ public String get$ref () {
59+ return $ref ;
60+ }
61+
62+ public void set$ref (String $ref ) {
63+ this .$ref = $ref ;
64+ }
5665}
You can’t perform that action at this time.
0 commit comments