GluuFederation / gluu-passport

Gluu interface to Passport.js to support social login and inbound identity.
Apache License 2.0
6 stars 17 forks source link

Validator `configDiscovery.validate` is returning data instead of if data is valid or not #385

Open christian-hawk opened 2 years ago

christian-hawk commented 2 years ago

Right now the configuration validator is returning the configuration data if data is valid. This is not validator responsability.

validate() should be void (return nothing if success, throw error if invalid) or a boolean if valid (in that case name should be isValid).