scalar / openapi-parser

Modern OpenAPI parser written in TypeScript
MIT License
34 stars 1 forks source link

feat: support references to other files #76

Closed hanspagel closed 3 months ago

hanspagel commented 4 months ago

Currently, we’re only supporting a single specification from a single data source.

This PR adds support for specifications referencing other files.

To achieve this, we’re introducing the concept of a Filesystem with FileEntries. There’s a helper to load files from disk loadFiles, but you don’t have to use that. The files can come from any data source, it’s just easier to think about a file system.

relativeci[bot] commented 4 months ago

#26 Bundle Size — 480.61KiB (+0.51%).

2226465(current) vs 36639d7 main#17(baseline)

Bundle metrics  Change 3 changes Regression 1 regression
                 Current
#26
     Baseline
#17
Regression  Initial JS 480.61KiB(+0.51%) 478.16KiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 100% 0%
No change  Chunks 1 1
No change  Assets 1 1
Change  Modules 306(+1.32%) 302
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 10 10
No change  Duplicate Packages 0 0

Bundle size by type  Change 1 change Regression 1 regression
|            |       Current
[#26](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/26-yxdRwVgeUc2NBaK4Y0MD?utm_source=github&utm_medium=pr-report "View bundle analysis report") |      Baseline
[#17](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/17-gjIlyfawkfU1DTWob0dr?utm_source=github&utm_medium=pr-report "View baseline bundle analysis report") | |:--|--:|--:| | Regression  [JS](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/26-yxdRwVgeUc2NBaK4Y0MD/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-1_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View JS assets") | `480.61KiB` (`+0.51%`) | `478.16KiB` |

Bundle analysis reportBranch feat/multifileProject dashboard

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 222646580efc4a5d7b53ca358bf3f8bac2d81a12

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ---------------------- | ----- | | @scalar/openapi-parser | Patch | | demo | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR