Skip to content

Commit d857079

Browse files
authored
fix: tolerate missing security schemes (#28)
1 parent 30a4307 commit d857079

File tree

13 files changed

+226
-358
lines changed

13 files changed

+226
-358
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import { Comparator } from "openapi-pact-comparator";
5151
5252
// openapi is object from JSON.parse() or yaml.load()
5353
const comparator = new Comparator(openapi);
54-
await comparator.validate();
5554
5655
// pacts is array of objects the same way
5756
for (const pact of pacts) {

src/__tests__/fixtures/request-parameters-path-extra.skip/results.json

Lines changed: 0 additions & 264 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cannot read properties of undefined (reading 'schema')

src/__tests__/fixtures/request-parameters-path-extra.skip/oas.yaml renamed to src/__tests__/fixtures/request-parameters-path-extra/oas.yaml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,6 @@ info:
33
title: path parameters
44
version: 1.0.0
55
paths:
6-
/integer/{id}:
7-
get:
8-
parameters:
9-
- in: path
10-
name: id
11-
required: true
12-
schema:
13-
type: integer
14-
responses:
15-
"200":
16-
description: description
17-
/boolean/{id}:
18-
get:
19-
parameters:
20-
- in: path
21-
name: id
22-
required: true
23-
schema:
24-
type: boolean
25-
responses:
26-
"200":
27-
description: description
286
/simple/explode-true/{id*}:
297
get:
308
parameters:
@@ -121,21 +99,3 @@ paths:
12199
responses:
122100
"200":
123101
description: description
124-
/exploded-object/{id}:
125-
get:
126-
parameters:
127-
- in: path
128-
name: id
129-
required: true
130-
schema:
131-
type: object
132-
properties:
133-
string:
134-
type: string
135-
number:
136-
type: number
137-
style: simple
138-
explode: true
139-
responses:
140-
"200":
141-
description: description

0 commit comments

Comments
 (0)