-
-
Notifications
You must be signed in to change notification settings - Fork 532
Big honkinโ refactor, OpenAPI 3.1 features #968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportBase: 93.62% // Head: 86.66% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #968 +/- ##
==========================================
- Coverage 93.62% 86.66% -6.97%
==========================================
Files 1 12 +11
Lines 204 1102 +898
Branches 29 211 +182
==========================================
+ Hits 191 955 +764
- Misses 13 147 +134
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. โ View full report at Codecov. |
30079c3
to
826d6ec
Compare
9eef7b5
to
59fd933
Compare
9533401
to
8443a58
Compare
Just out of curiosity were those |
v6 drops support for Swagger 2.0 so the v2 folder was dropped and v3 just became |
Changes
Refactors app, accomplishes many goals outlined in #961.
๐งน Codebase changes
ES2018
toESNext
(which most Node versions support)๐ OpenAPI changes
oneOf
,anyOf
, andallOf
(finishes undone work outlined in anyOf should not result in intersection typeย #894 whereanyOf
was fixed but leftoneOf
broken)path.default
type& { property: unknown; }
withallOf
unionย #958๐ค CLI changes
--immutable-types
has a new-t
alias๐จ Breaking changes
--version
was changed to return the version of this library (also by dropping Swagger 2.0 support the old usage was no longer needed)--raw-schema
and support for partial schemas. Your entry schema MUST be valid and complete (however, your$ref
s to subschemas may be partials).--make-paths-enum
because it was incompatible with--path-params-as-types
-it
and-ap
(specify the full--immutable-types
or--additional-properties
flag)content: {}
now returnsnever
. Dropped the--content-never
flag as this is now the default behavior.formatter()
function totransform()
andpostTransform()
. Itโs an overall improvement on the original concept with even more power than before.