Skip to content

Commit 5b82fce

Browse files
author
alexperez
committed
fix: correct raw value check logic in ExampleGenerator to handle null and undefined cases
1 parent cba7d90 commit 5b82fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExampleGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
717717
if (result.hasTitle) {
718718
result.title = title;
719719
}
720-
if (opts.rawOnly && (raw !== null || raw !== undefined)) {
720+
if (opts.rawOnly && (raw === null || raw === undefined)) {
721721
return undefined;
722722
}
723723
if (opts.rawOnly) {

0 commit comments

Comments
 (0)