dont check the post body text area for as a required field when it's not visible (fro example when using the jsoneditor)
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -31502,7 +31502,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
error_free = false;
|
error_free = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
form.find('textarea.required').each(function() {
|
form.find('textarea.required:visible').each(function() {
|
||||||
$(this).removeClass('error');
|
$(this).removeClass('error');
|
||||||
if (jQuery.trim($(this).val()) === '') {
|
if (jQuery.trim($(this).val()) === '') {
|
||||||
$(this).addClass('error');
|
$(this).addClass('error');
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -296,7 +296,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
error_free = false;
|
error_free = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
form.find('textarea.required').each(function() {
|
form.find('textarea.required:visible').each(function() {
|
||||||
$(this).removeClass('error');
|
$(this).removeClass('error');
|
||||||
if (jQuery.trim($(this).val()) === '') {
|
if (jQuery.trim($(this).val()) === '') {
|
||||||
$(this).addClass('error');
|
$(this).addClass('error');
|
||||||
|
|||||||
Reference in New Issue
Block a user