If I post a SCIM POST request to the server with a null value for emails, I receive:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "400",
"scimType": "invalidValue",
"detail": "attribute emails is not an array"
}
Similarly, if I POST a request with a null value for a schema attribute, I get an error as well:
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],
"externalId": "external",
"userName": "{{$guid}}",
"emails": null,
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": null,
"name": {
"formatted": "formatted",
"givenName": "givenName",
"middleName": "middleName",
"familyName": "familyName"
}
}
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "400",
"scimType": "invalidValue",
"detail": "Property urn:ietf:params:scim:schemas:extension:enterprise:2.0:User cannot contains an array"
}
I can do some extra work serializing to omit nulls, but maybe this should be handled more gracefully by the server?
If I post a SCIM POST request to the server with a
nullvalue foremails, I receive:{ "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "status": "400", "scimType": "invalidValue", "detail": "attribute emails is not an array" }Similarly, if I POST a request with a
nullvalue for a schema attribute, I get an error as well:{ "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"], "externalId": "external", "userName": "{{$guid}}", "emails": null, "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": null, "name": { "formatted": "formatted", "givenName": "givenName", "middleName": "middleName", "familyName": "familyName" } }{ "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "status": "400", "scimType": "invalidValue", "detail": "Property urn:ietf:params:scim:schemas:extension:enterprise:2.0:User cannot contains an array" }I can do some extra work serializing to omit nulls, but maybe this should be handled more gracefully by the server?