fabbricadigitale / scimd

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

Unassigned and Null values for Structured Resources #8

Closed leogr closed 6 years ago

leogr commented 7 years ago

Currently Structured Resources does not implement Unassigned and Null rules.

The main issue is that we can assign nil to scalar attribute of a struct. In case of nested struct (eg. Meta) we could embed by-pointer, but it seems overkilling in case of scalars.

However, may be we do not need Unassigned and Null for attributes of these resources (ie. Schema, ResourceType, and ServiceProviderConfig. If we can confirm that then we can close this issue and document this special case.

leogr commented 7 years ago

Same issue for Common that's embedded into mapped resource too. However, Common attributes should be not null and not unassigned always.