Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpmule committed Jan 9, 2024
1 parent 19906af commit 8a1a5c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ExampleGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a1a5c0

Please sign in to comment.