fix: multipart array sample generation for items (#6461)
* json schema array component should use schema to generate example in case of array items. * empty value checkbox should be disabled if not empty => not empty list || not empty string * curl should also check for not empty list
This commit is contained in:
@@ -416,7 +416,10 @@ export const executeRequest = (req) =>
|
||||
}
|
||||
)
|
||||
.filter(
|
||||
(value, key) => !isEmptyValue(value) || requestBodyInclusionSetting.get(key)
|
||||
(value, key) => (Array.isArray(value)
|
||||
? value.length !== 0
|
||||
: !isEmptyValue(value)
|
||||
) || requestBodyInclusionSetting.get(key)
|
||||
)
|
||||
.toJS()
|
||||
} else{
|
||||
|
||||
Reference in New Issue
Block a user