Closed hanspagel closed 3 weeks ago
Latest commit: 10595a3de46c2a27596b7550d2de78df72421d65
The changes in this PR will be included in the next version bump.
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
Latest commit: |
10595a3
|
Status: | β Deploy successful! |
Preview URL: | https://3cb6130b.openapi-parser.pages.dev |
Branch Preview URL: | https://feat-throw-on-error.openapi-parser.pages.dev |
10595a3(current) vs 21b6fc0 main#98(baseline)
Bundle metrics
![]()
2 changes
![]()
1 regression
ββββββββββ | ββββββCurrent #109 |
βββββBaseline #98 |
---|---|---|
116.41KiB (+1.7% ) |
114.45KiB |
|
0B |
0B |
|
9.83% |
0% |
|
45 |
45 |
|
45 |
45 |
|
45 |
45 |
|
0 |
0 |
|
0% |
0% |
|
0 |
0 |
|
0 |
0 |
1 change
1 regression
Bundle analysis reportβBranch feat/throw-on-errorβProject dashboard
With this PR, weβre introducing the new option
throwOnError
which can be passed toopenapi()
,validate()
anddereference()
to make them throw an exception on the first error that they find.The default is still to just deal with whatever is passed, but for some use cases we might want a stricter version.
Inspiration: #136
Note: This also adds the opportunity to add more options in the future. π