Skip to content

Conversation

@TheHaff
Copy link

@TheHaff TheHaff commented Sep 16, 2025

Status

READY

Description

I had a local script that pruned my openapi file and thought maybe you would like the same functionality.
The signature is [pathUrl, [get, delete]].

Related PRs

List related PRs against other branches:

branch PR
other_pr_production link
other_pr_master link

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Steps to Test or Reproduce

Outline the steps to test or reproduce the PR here.

> git pull --prune
> git checkout <branch>
> grunt jasmine

@melloware melloware added the enhancement New feature or request label Sep 16, 2025
Copy link
Member

@soartec-lab soartec-lab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheHaff
Thanks for the suggestion. Let me check before looking at the source code.

Wouldn't it be enough to narrow down the target endpoints by changing the tags?
In the case of tags, you can specify them on an endpoint-by-endpoint basis, and filters already exist.

@TheHaff
Copy link
Author

TheHaff commented Oct 7, 2025

This is more for the case of frontend people working towards a monolithic big boi backend. I wouldn't dare go in there and change stuff and this allows me to avoid unused endpoints. I will also be adding some more checks like if path not found or method not found to make it a bit more robust.

@Armanio
Copy link
Contributor

Armanio commented Oct 10, 2025

@TheHaff
Very impressive work!

But I have to ask: input.override.transformer isn't it suitable for the task of path filtering?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants