Add documentation to postman import and export (#2274)

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
Hinnerk Oetting 2024-08-23 21:42:31 +02:00 committed by GitHub
parent 9efbd7377a
commit c0d214f2bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@ export const exportCollection = (collection) => {
const generateInfoSection = () => {
return {
name: collection.name,
description: collection.root?.docs,
schema: 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json'
};
};
@ -206,6 +207,8 @@ export const exportCollection = (collection) => {
const requestObject = {
method: itemRequest.method,
header: generateHeaders(itemRequest.headers),
auth: generateAuth(itemRequest.auth),
description: itemRequest.docs
url: {
raw: itemRequest.url,
host: generateHost(itemRequest.url),

View File

@ -113,7 +113,8 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) =
xml: null,
formUrlEncoded: [],
multipartForm: []
}
},
docs: i.request.description
}
};
/* struct of translation log