Bakc to 2.2 implementation of the swagger extension. Will be re-analyzed soon.