From 8a1a5c032fd665bc809a5548221955fa4e76502f Mon Sep 17 00:00:00 2001 From: alexperez Date: Tue, 9 Jan 2024 14:17:21 -0300 Subject: [PATCH] chore: add comment --- src/ExampleGenerator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ExampleGenerator.js b/src/ExampleGenerator.js index 3080dd2..9e9f66c 100644 --- a/src/ExampleGenerator.js +++ b/src/ExampleGenerator.js @@ -757,6 +757,8 @@ export class ExampleGenerator extends AmfHelperMixin(Object) { } }); if (isJson) { + // if raw (original example) exists try to parse it to JSON + // if the parse process fails then use parts to build example value if (result.raw) { try { result.value = this.computeRaw(raw)