I kind of expected this usage to work, keeping the foo tag and any operation tagged with x-public, but unfortunately it doesn't and I have to tag the foo tag with x-public for it to be kept.
inverseTags:
- foo
inverseFlags:
- x-public
unusedComponents:
- schemas
- parameters
- examples
- headers
- requestBodies
- responses