Skip to content

Commit e83696d

Browse files
committed
Removed consumes/produces as it is not part of openapi3
1 parent 1db0831 commit e83696d

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

swagger/swagger.html

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@
3939
<label id="node-config-input-tags-label" for="node-config-input-tags" class="popover-right" data-i18n="[data-content]swagger.data-content.tags"><span data-i18n="swagger.label.tags"></span></label>
4040
<input type="text" id="node-config-input-tags" data-i18n="[placeholder]swagger.placeholder.tags">
4141
</div>
42-
<div class="form-row">
43-
<label id="node-config-input-consumes-label" for="node-config-input-consumes" class="popover-right" data-i18n="[data-content]swagger.data-content.consumes"><span data-i18n="swagger.label.consumes"></span></label>
44-
<input type="text" id="node-config-input-consumes" data-i18n="[placeholder]swagger.placeholder.consumes">
45-
</div>
46-
<div class="form-row">
47-
<label id="node-config-input-produces-label" for="node-config-input-produces" class="popover-right" data-i18n="[data-content]swagger.data-content.produces"><span data-i18n="swagger.label.produces"></span></label>
48-
<input type="text" id="node-config-input-produces" data-i18n="[placeholder]swagger.placeholder.produces">
49-
</div>
5042
<div class="form-row">
5143
<input type="checkbox" id="node-config-input-deprecated" style="width: auto; vertical-align: top;"> <label id="node-config-input-deprecated-label" for="node-config-input-deprecated" class="popover-right" data-i18n="[data-content]swagger.data-content.deprecated"><span data-i18n="swagger.label.deprecated"></span></label>
5244
</div>
@@ -87,12 +79,6 @@
8779
tags: {
8880
value: ""
8981
},
90-
consumes: {
91-
value: ""
92-
},
93-
produces: {
94-
value: ""
95-
},
9682
parameters: {
9783
value: []
9884
},
@@ -141,12 +127,10 @@
141127
},
142128
oneditprepare: function() {
143129

144-
// Tooltips for Summary, Description, Tags, Consumes, Produces and Deprecated Labels on Properties Tab.
130+
// Tooltips for Summary, Description, Tags, and Deprecated Labels on Properties Tab.
145131
RED.popover.tooltip($('#node-config-input-summary-label'), this._("swagger.data-content.summary"));
146132
RED.popover.tooltip($('#node-config-input-description-label'), this._("swagger.data-content.description"));
147133
RED.popover.tooltip($('#node-config-input-tags-label'), this._("swagger.data-content.tags"));
148-
RED.popover.tooltip($('#node-config-input-consumes-label'), this._("swagger.data-content.consumes"));
149-
RED.popover.tooltip($('#node-config-input-produces-label'), this._("swagger.data-content.produces"));
150134
RED.popover.tooltip($('#node-config-input-deprecated-label'), this._("swagger.data-content.deprecated"));
151135

152136
RED.popover.tooltip($('#node-config-input-parameter-info'), this._("swagger.content.parameter-info"));

swagger/swagger.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ module.exports = function (RED) {
182182
this.summary = n.summary;
183183
this.description = n.description;
184184
this.tags = n.tags;
185-
this.consumes = n.consumes;
186-
this.produces = n.produces;
187185
this.parameters = n.parameters;
188186
this.responses = n.responses;
189187
this.deprecated = n.deprecated;

0 commit comments

Comments
 (0)