From 2d844f415925415cfc3544434c6d1b6c4970b738 Mon Sep 17 00:00:00 2001 From: Micha Mazaheri Date: Wed, 13 Nov 2019 18:20:58 +0200 Subject: [PATCH] Fix Postman JSON Schema compatibility --- src/index.ts | 2 ++ src/types-paw-api/postman.d.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index 717ea30..1996785 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,6 +54,7 @@ class PostmanGenerator implements Paw.Generator { name: pawGroup.name, item: pmChildren, protocolProfileBehavior: null, + response: [], } return pmItem } @@ -101,6 +102,7 @@ class PostmanGenerator implements Paw.Generator { name: pawRequest.name, request: pmRequest, protocolProfileBehavior: pmOptions, + response: [], } return pmItem } diff --git a/src/types-paw-api/postman.d.ts b/src/types-paw-api/postman.d.ts index f905f1f..58316e4 100644 --- a/src/types-paw-api/postman.d.ts +++ b/src/types-paw-api/postman.d.ts @@ -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 {