Adding swagger to `RegistrantResource`