This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support references to other files (#76)
* test: add a failing multifile test * test: improve multi file tests * feat: compose two files * feat: resolve parts of other files * feat: find files with relative paths in external files * fix: single specification breaks resolveReference * chore: don’t throw an error when a reference is invalid * chore: clean up * docs: update README * refactor: move tests around * chore: clean up * chore: enable failing test * chore: enable reference example again * test: use correct helper method for externalPathItemRef test * chore: improve error message when URIs can’t be found * refactor: move uri not found error message to global errors * chore: remove resolveReferences from Validator class, not needed anymore * chore: clean up * chore: add TODO * fix: slashes in uris are not escaped properly * fix: broken import * refactor: make resolveReferences return an object * feat: properly return all errors * fix: TS issues * fix: tests * refactor: improve errors * docs: add a section about file references * docs(changeset): feat: file references * fix: validate function can’t find external references * chore: clean up * chore: enable one more test * refactor: merge lists of open api versions and specifications * refactor: simplify error message * refactor: simplify validate function * refactor: move all function to the utils folder * fix: demo doesn’t return any result
- Loading branch information
Showing
96 changed files
with
831 additions
and
817 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scalar/openapi-parser": patch | ||
--- | ||
|
||
feat: file references |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
packages/openapi-parser/src/lib/Validator/_backup/resolveFromFilesystem.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.