apache / apache/directory-scimple

Add support for model validation

Open
#559 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
103
Forks
47
Avg merge
3d 15h
Merged PRs (30d)
16

Description

I'm trying scim-server-spring-boot example and everything is working fine. But i noticed that SCIMple library doesn't do any kind of validation on JSON request provided.
For example If i create user using below JSON request naming userName__ field instead of userName (by standard User standard Schema the correct name to be userName) i get 201 created instead of 400 bad request. The same result if i remove userName field although it is mandatory. Why? Is there something I'm not configuring well or that needs to be implemented by me?
Please let me know.

Thanks

```json
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"externalId": "extId",
"userName__": "username_1",
"name": {
"familyName": "XXX",
"givenName": "YYY"
},
"active": true,
"emails": [
{
"value": "email_3101_1417@gmail.com"
}
],
"addresses": [
{
"country": "US"
}
],
"phoneNumbers": [
{
"value": "+390833186005",
"type": "work"
},
{
"value": "+32802213916",
"type": "mobile",
"primary": false
}
],
"timezone": "Europe/London",
//"preferredLanguage": "ita",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"organization": "Buyer_guru",
"division": "Division",
"department": ""
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.