scalar / openapi-parser

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

feat: type custom extensions, custom extensions in schemas #166

Closed hanspagel closed 1 month ago

hanspagel commented 1 month ago

This PR adds two features to the OpenAPI types:

You can now type custom extensions (or any other attribute) like shown here. This doesn’t work on all depth levels yet, I’ll ff with more changes/refactoring.

Screenshot 2024-08-01 at 12 40 52

With this PR, you can add custom extensions (or any other attribute) in schemas (see #160):

Screenshot 2024-08-01 at 12 40 47
changeset-bot[bot] commented 1 month ago

πŸ¦‹ Changeset detected

Latest commit: 0d9e98ee9cb3e2eba0d31267015f1d69839573bf

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

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @scalar/openapi-parser | 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

cloudflare-pages[bot] commented 1 month ago

Deploying openapi-parser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0d9e98e
Status: βœ…  Deploy successful!
Preview URL: https://e1df81c6.openapi-parser.pages.dev
Branch Preview URL: https://feat-better-openapi-types.openapi-parser.pages.dev

View logs

relativeci[bot] commented 1 month ago

#133 Bundle Size β€” 74.91KiB (0%).

0d9e98e(current) vs bb10fa5 main#132(baseline)

Bundle metrics  no changes
                 Current
#133
     Baseline
#132
No change  Initial JS 74.91KiB 74.91KiB
No change  Initial CSS 0B 0B
No change  Cache Invalidation 0% 0%
No change  Chunks 45 45
No change  Assets 45 45
No change  Modules 45 45
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 0 0
No change  Duplicate Packages 0 0

Bundle size by type  no changes
|            |       Current
[#133](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/133-HCcb6jxtK5ftkgjBhGR5?utm_source=github&utm_medium=pr-report "View bundle analysis report") |      Baseline
[#132](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/132-uhWKYI594rCRLiBldcjy?utm_source=github&utm_medium=pr-report "View baseline bundle analysis report") | |:--|--:|--:| | No change  [JS](https://app.relative-ci.com/projects/hXQ54UQKluDUZAKvpt9b/jobs/133-HCcb6jxtK5ftkgjBhGR5/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") | `74.91KiB` | `74.91KiB` |

Bundle analysis report Branch feat/better-openapi-types Project dashboard