Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Based on:

Pulling this into a separate discussion as a candidate for v2.0

Add support for removing unused objects through introspection as doing this retrospectively through Spectral/Redoc/Vacuum linting results and then another Overlay seems like a chore.

Proposed syntax:

- target: $.paths['/accounts/{AccountId}']
  remove: true
  remove-unused-references: true # default is false

Support for this seems like a good extension to Overlay because:

  • Reduces the need for handcraft rules to do it.
  • Reduced cognitive load on maintainers to keep up with changes to the OpenAPI description that may be transparent to them.
  • Increases the utility of Overlay.

I think the access path for this is reasonably deterministic, however I would tempted to restrict to local references only - a recursive/walk-based into remote references would a) be difficult to prescribe and b) possibly be very difficult to implement.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.