Skip to content

Commit 2d844f4

Browse files
committed
Fix Postman JSON Schema compatibility
1 parent d40733c commit 2d844f4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class PostmanGenerator implements Paw.Generator {
5454
name: pawGroup.name,
5555
item: pmChildren,
5656
protocolProfileBehavior: null,
57+
response: [],
5758
}
5859
return pmItem
5960
}
@@ -101,6 +102,7 @@ class PostmanGenerator implements Paw.Generator {
101102
name: pawRequest.name,
102103
request: pmRequest,
103104
protocolProfileBehavior: pmOptions,
105+
response: [],
104106
}
105107
return pmItem
106108
}

src/types-paw-api/postman.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export interface Item {
4040
request?: Request|null
4141
item?: Item[]|null
4242
protocolProfileBehavior: ProtocolProfileBehavior|null
43+
response: Response[]
44+
}
45+
46+
export interface Response {
47+
// not defined
4348
}
4449

4550
export interface Request {

0 commit comments

Comments
 (0)