Skip to content

Releases: luckymarmot/Paw-OpenAPI3Importer

0.1.1-beta.5

13 Jul 06:56
2311ab3
Compare
Choose a tag to compare
0.1.1-beta.5 Pre-release
Pre-release

this commit upgrades the swagger parser and sets the options to:

  • continueOnError: true do not throw on first error
  • resolve.file: false do not resolve external references
  • resolve.http: false do not resolve URL references

0.1.1-beta.4

28 Jun 13:21
db33795
Compare
Choose a tag to compare
0.1.1-beta.4 Pre-release
Pre-release

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

Screen Shot 2022-06-28 at 16 10 49

When importing a file and the 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.

0.1.1-beta.2

19 Jun 10:37
a898d83
Compare
Choose a tag to compare
0.1.1-beta.2 Pre-release
Pre-release

fix(paw-url): refactor url generation

this commit refactors PawURL class, where it utilizes URL class
instead of RegEx to detect a valid url.

Fixes for issue:

  • #11: import is empty - almost
  • #12: not work on openapi 3.0.3

0.1.1-beta.1

16 Jun 07:57
a898d83
Compare
Choose a tag to compare
0.1.1-beta.1 Pre-release
Pre-release

chore(enable-circular-reference)

  • updated: pushed back support to 3.0.x
  • updated: openapi v3 petstore example
  • updated: enable circular reference

0.1.1-beta

04 May 20:29
0c6a971
Compare
Choose a tag to compare
0.1.1-beta Pre-release
Pre-release
  • import server objects as environment variables
  • fix/update import URL
  • fix/update extension name, remove redundant "Importer" suffix

0.1.0-beta

04 May 08:42
fa001dd
Compare
Choose a tag to compare
0.1.0-beta Pre-release
Pre-release

Co-authored-by: Micha Mazaheri micha@mazaheri.me

  • updated: utilize @apidevtools/swagger-parser to validate and parse OpenAPI documents
  • updated: utilize openapi-types for typings
  • chore: upgraded webpack, babel setup and jest setup
  • chore: updated extension config references
  • chore: improve code coherence, reduce code complexity

TODO

  • utils/paw-url.ts improve code coherence, utilize URL api
  • utils/json-schema-parser.ts - improve code, ensure compliance with openapi/json-schema specs
  • utils/console.ts - ensure to cover cyclic objects+references

0.1.1-beta.3

24 Aug 11:14
Compare
Choose a tag to compare
0.1.1-beta.3 Pre-release
Pre-release
improve(validation-prompt): validation message

- improved: validation error message
- updated : bumped swagger-parser version to 10.0.3