luckymarmot / Paw-OpenAPI3Importer

OpenAPI 3 (Swagger 3) Importer for Paw
MIT License
18 stars 3 forks source link

chore(server-url-placeholder): enVar for server objects #15

Closed pongstr closed 2 years ago

pongstr commented 2 years ago

Screen Shot 2022-06-28 at 16 10 49

When importing and server url is defined without the domain, requests that are imported are missing an origin, while the importer adds a substitute URL to make the request valid, it makes it hard for users to update multiple requests with the origin they prefer.

This commit addresses that issue, when an imported file does not have a valid URL, the importer creates an environment variable, and sets its value to https://echo.paw.cloud which is added to every request.