diff --git a/amf-cli/js/typings/amf-client-js.d.ts b/amf-cli/js/typings/amf-client-js.d.ts index 65a1932b33..3920e1e1e1 100644 --- a/amf-cli/js/typings/amf-client-js.d.ts +++ b/amf-cli/js/typings/amf-client-js.d.ts @@ -6503,6 +6503,7 @@ declare module "amf-client-js" { getMaxYamlReferences: undefined | number; isAmfJsonLdSerialization: boolean; isTokens: boolean; + isExtensionsEverywhere: boolean; constructor(); @@ -6523,6 +6524,10 @@ declare module "amf-client-js" { withoutBaseUnitUrl(): ParsingOptions; withoutTokens(): ParsingOptions; + + withExtensionsEverywhere(): ParsingOptions; + + withoutExtensionsEverywhere(): ParsingOptions; } export class Path { static delimiter: string; diff --git a/amf-shapes/shared/src/main/scala/amf/shapes/internal/spec/common/parser/ShapeParserContext.scala b/amf-shapes/shared/src/main/scala/amf/shapes/internal/spec/common/parser/ShapeParserContext.scala index 8fe7296fef..5621f92373 100644 --- a/amf-shapes/shared/src/main/scala/amf/shapes/internal/spec/common/parser/ShapeParserContext.scala +++ b/amf-shapes/shared/src/main/scala/amf/shapes/internal/spec/common/parser/ShapeParserContext.scala @@ -306,4 +306,6 @@ class ShapeParserContext( ) } } + + def shouldParseExtensionsEverywhere: Boolean = options.extensionsEverywhere }