Skip to content

Commit 1fe6ea4

Browse files
committed
fix: ignore shape.contextParam and .document
1 parent 4ca3454 commit 1fe6ea4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,12 @@ function transformShape(openapi,shape){
453453
if (typeof obj.requiresLength === 'boolean') {
454454
delete obj.requiresLength; // TODO
455455
}
456+
if (typeof obj.contextParam === 'object') {
457+
delete obj.contextParam; // TODO
458+
}
459+
if (typeof obj.document === 'boolean') {
460+
delete obj.document; // TODO
461+
}
456462
if (key == 'deprecated') {
457463
// if boolean, it's a property which maps to OAS schemaObject
458464
// deprecated ok, if an Object it's a property of the shape/schema

0 commit comments

Comments
 (0)