Skip to content

Conversation

jobayle
Copy link
Contributor

@jobayle jobayle commented Oct 16, 2025

Pull Request

Description

This PR adds a new feature: ability to ignore hidden attribute or @Hidden annotation.

Adds a new configuration parameter: ignoreHidden available in both the maven and gradle plugins.

Our use cas is: generate an OpenAPI spec file without the hidden ops/params to give to our users.
Generate an OpenAPI that includes hidden ops/params for our FrontEnd (codegen tools) and for our QA team.

The alternative we've considered: a text processing tool to remove @Hidden from our codebase before running resolve again.

Wdyt ?

This probably needs more tests (eg: generate an OpenApi file with the parameter set to true and compare with ref file, but I'm not sure how to do this and I'd like to know if this would be merged before spending more time on it)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant