-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openapi): tooling upgrades (#1126)
## 🧰 Changes This upgrades our [oas](https://npm.im/oas) and [oas-normalize](https://npm.im/oas-normalize) tooling to their latest releases. Included in this work are a couple new features to and refactors to some commands: #### `openapi` The `.validate()` call within `oas-normalize` has been refactored to no longer do conversion and validation, the conversion side has been split off to a new `.convert()` method. As part of this change the previous `convertToLatest` parameter that `.validate()` accepted for converting Swagger definitions to OpenAPI no longer exists anywhere. We had this configurable within some internal methods within rdme but it was never exposed, and converting Swagger to OpenAPI has always been the default behavior throughout rdme. #### `openapi inspect` Our analyzer tool can now surface information on if an API definition utilizes common parameters.[^1] I have also removed our dependency on [pluralize](https://npm.im/pluralize) because we were only loading it to pluralize three strings: "media type", "operation", and "security type". Because these can be easily pluralized with a one-liner we don't really need to import a wholeass library to do this. [^1]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object
- Loading branch information
Showing
10 changed files
with
221 additions
and
35 deletions.
There are no files selected for viewing
141 changes: 141 additions & 0 deletions
141
__tests__/commands/openapi/__snapshots__/inspect.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters