Browse Source

Disable sample response for file transfer

bubble
Derek Wickern 7 years ago
parent
commit
34c57fb018
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/core/plugins/samples/fn.js

+ 4
- 0
src/core/plugins/samples/fn.js View File

@@ -74,6 +74,10 @@ export const sampleFromSchema = (schema, config={}) => {
return normalizeArray(schema["enum"])[0]
}

if (type === "file") {
return
}

return primitive(schema)
}



Loading…
Cancel
Save