prune_openapi function

Ensure consistency of OpenAPI auth description