Skip to content

Commit

Permalink
Merge pull request #5 from luckymarmot/fix-json-schema-compatibility
Browse files Browse the repository at this point in the history
Fix Postman JSON Schema compatibility
  • Loading branch information
mittsh authored Nov 13, 2019
2 parents d40733c + 2d844f4 commit 8a153f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class PostmanGenerator implements Paw.Generator {
name: pawGroup.name,
item: pmChildren,
protocolProfileBehavior: null,
response: [],
}
return pmItem
}
Expand Down Expand Up @@ -101,6 +102,7 @@ class PostmanGenerator implements Paw.Generator {
name: pawRequest.name,
request: pmRequest,
protocolProfileBehavior: pmOptions,
response: [],
}
return pmItem
}
Expand Down
5 changes: 5 additions & 0 deletions src/types-paw-api/postman.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ export interface Item {
request?: Request|null
item?: Item[]|null
protocolProfileBehavior: ProtocolProfileBehavior|null
response: Response[]
}

export interface Response {
// not defined
}

export interface Request {
Expand Down

0 comments on commit 8a153f5

Please sign in to comment.