diff --git a/bin/generate-example-metadata.mjs b/bin/generate-example-metadata.mjs index 25986c0..705d2a3 100755 --- a/bin/generate-example-metadata.mjs +++ b/bin/generate-example-metadata.mjs @@ -16,7 +16,7 @@ json, prefix = "post.responses.default.content.application/json.example." ) => { - const flattened = flatten(json, { safe: true }); + const flattened = flatten(json, { safe: false }); const str = Object.keys(flattened) .map(key => `${prefix + key}: ${json2dotNotationLitteral(flattened[key])}`) .join("\n");