fabbricadigitale / scimd

SCIM v2 golang implementation
MIT License
5 stars 1 forks source link

Giving an empty ResourceType to Contexts() #63

Closed samechelon closed 6 years ago

samechelon commented 6 years ago

If an empty ResourceType is passed to the Contexts() method will panic here

What to do if an empty ResourceType somehow is passed to this method?

leogr commented 6 years ago

It's ok to panic when a schema is missing from the repository. It just notices you that the service provider was misconfigured. API's users must ensure that definitions (schemas, resource types, and configs) have been loaded prior to use them.

@leodido do you agree?

leodido commented 6 years ago

Yes I agree.