File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
641
641
example ,
642
642
this . ns . aml . vocabularies . document . raw
643
643
) ) ;
644
- if ( ! raw ) {
644
+ if ( raw === null || raw === undefined ) {
645
645
raw = /** @type {string } */ ( this . _getValue (
646
646
example ,
647
647
this . ns . w3 . shacl . raw
@@ -707,7 +707,7 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
707
707
example ,
708
708
this . ns . aml . vocabularies . core . description
709
709
) ) ;
710
- const hasRaw = ! ! raw ;
710
+ const hasRaw = raw !== null && raw !== undefined ;
711
711
const result = { } ;
712
712
result . hasTitle = ! ! title ;
713
713
result . hasUnion = false ;
@@ -717,7 +717,7 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
717
717
if ( result . hasTitle ) {
718
718
result . title = title ;
719
719
}
720
- if ( opts . rawOnly && ! raw ) {
720
+ if ( opts . rawOnly && ( raw !== null || raw !== undefined ) ) {
721
721
return undefined ;
722
722
}
723
723
if ( opts . rawOnly ) {
You can’t perform that action at this time.
0 commit comments