|
|
@@ -29,6 +29,7 @@ export const sampleFromSchema = (schema, config={}) => { |
|
|
|
let { type, example, properties, additionalProperties, items } = objectify(schema) |
|
|
|
let { includeReadOnly, includeWriteOnly } = config |
|
|
|
|
|
|
|
|
|
|
|
if(example !== undefined) { |
|
|
|
return deeplyStripKey(example, "$$ref", (val) => { |
|
|
|
// do a couple of quick sanity tests to ensure the value |
|
|
|