scalar / openapi-parser

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

feat: render code frames for errors (wip) #178

Closed hanspagel closed 2 weeks ago

hanspagel commented 2 weeks ago

This PR aims to add better error output in general. Currently, it’s just doing a prototype for better error output in Node, though.

It’s living in a test file only, is not exposed and only adds dev dependencies. So let’s get this in, before we move to scalar/scalar. :) We’ll finish it on the other side.

Preview

Screenshot 2024-08-27 at 11 25 33
changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: b98f8228a49a75b2b6d56b0c863f40e0e2cb2b85

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

relativeci[bot] commented 2 weeks ago

#145 Bundle Size — 75.52KiB (0%).

b98f822(current) vs 2512b07 main#144(baseline)

Bundle metrics  no changes
|            |       Current
[#145](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC?utm_source=github&utm_medium=pr-report "View bundle analysis report") |      Baseline
[#144](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/144-LKybsFlvfeSnnVkp51dE?utm_source=github&utm_medium=pr-report "View baseline bundle analysis report") | |:--|--:|--:| | No change  [Initial JS](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/assets?ba=%7B%22filters%22%3A%22et.entrypoint-0_et.initial-1_et.chunk-0_et.asset-0_ft.CSS-0_ft.JS-1_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View initial JS assets") | `75.52KiB` | `75.52KiB` | | No change  [Initial CSS](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/assets?ba=%7B%22filters%22%3A%22et.entrypoint-0_et.initial-1_et.chunk-0_et.asset-0_ft.CSS-1_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View initial CSS assets") | `0B` | `0B` | | Change  [Cache Invalidation](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/assets?ba=%7B%22filters%22%3A%22changed-1%22%7D "View changed assets") | `0%` | `4.13%` | | No change  [Chunks](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/assets?ba=%7B%22filters%22%3A%22et.entrypoint-0_et.initial-0_et.chunk-1_et.asset-0%22%7D "View chunks") | `45` | `45` | | No change  [Assets](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/assets?ba=%7B%22filters%22%3A%22changed-0%22%7D "View assets") | `45` | `45` | | No change  [Modules](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/modules?bm=%7B%22metric%22%3A%22totalSize%22%2C%22filters%22%3A%22changed-0%22%7D "View modules") | `45` | `45` | | No change  [Duplicate Modules](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/modules?bm=%7B%22metric%22%3A%22duplicateSize%22%2C%22filters%22%3A%22changed-0_md-1%22%7D "View duplicate modules") | `0` | `0` | | No change  [Duplicate Code](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/modules?bm=%7B%22metric%22%3A%22duplicateSize%22%2C%22filters%22%3A%22changed-0_md-1%22%7D "View duplicate modules") | `0%` | `0%` | | No change  [Packages](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/packages?bp=%7B%22filters%22%3A%22changed-0%22%7D "View packages") | `0` | `0` | | No change  [Duplicate Packages](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/packages?bp=%7B%22filters%22%3A%22duplicate-1%22%7D "View duplicate packages") | `0` | `0` |
Bundle size by type  no changes
|            |       Current
[#145](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC?utm_source=github&utm_medium=pr-report "View bundle analysis report") |      Baseline
[#144](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/144-LKybsFlvfeSnnVkp51dE?utm_source=github&utm_medium=pr-report "View baseline bundle analysis report") | |:--|--:|--:| | No change  [JS](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/145-BDVW3fBi5hV7RdcjIJYC/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") | `75.52KiB` | `75.52KiB` |

Bundle analysis reportBranch feat/awesome-error-outputProject dashboard


Generated by RelativeCIDocumentationReport issue