Skip to content

Commit 5556d0c

Browse files
committed
refactor(parser): remove parsePatternProperties function and related logic
1 parent e831454 commit 5556d0c

File tree

1 file changed

+0
-18
lines changed
  • packages/openapi-ts/src/openApi/3.1.x/parser

1 file changed

+0
-18
lines changed

packages/openapi-ts/src/openApi/3.1.x/parser/schema.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -801,16 +801,6 @@ const parseOneOf = ({
801801
return irSchema;
802802
};
803803

804-
const parsePatternProperties = ({
805-
context,
806-
schema,
807-
state,
808-
}: {
809-
context: IR.Context;
810-
schema: SchemaWithRequired<SchemaObject, 'patternProperties'>;
811-
state: SchemaState;
812-
}): IR.SchemaObject => parseObject({ context, schema, state });
813-
814804
const parseRef = ({
815805
context,
816806
schema,
@@ -1094,14 +1084,6 @@ export const schemaToIrSchema = ({
10941084
});
10951085
}
10961086

1097-
if (schema.patternProperties) {
1098-
return parsePatternProperties({
1099-
context,
1100-
schema: schema as SchemaWithRequired<SchemaObject, 'patternProperties'>,
1101-
state,
1102-
});
1103-
}
1104-
11051087
// infer object based on the presence of properties
11061088
if (schema.type || schema.properties) {
11071089
return parseType({

0 commit comments

Comments
 (0)