Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot validate multi-valued attribute of primitive values #10

Open
ostrolucky opened this issue Oct 24, 2024 · 0 comments
Open

Cannot validate multi-valued attribute of primitive values #10

ostrolucky opened this issue Oct 24, 2024 · 0 comments

Comments

@ostrolucky
Copy link

According RFC 7643,section 2.4:

Multi-valued attributes contain a list of elements using the JSON
array format defined in Section 5 of [RFC7159]. Elements can be
either of the following:

o primitive values, or

Hence I would expect schema like this to work:

{
          "name": "tags",
          "type": "string",
          "mutability": "readWrite",
          "returned": "default",
          "uniqueness": "none",
          "required": false,
          "multiValued": true,
          "caseExact": false
}

However, validator crashes with that once validating with payload including"tags": ["Chewbag"]:

Type error: Tmilos\ScimSchema\Validator\SchemaValidator::validateByAttributes(): Argument #1 ($object) must be of type array, string given, called in /Users/gostrolucky/Documents/eqs/data-center-api/vendor/tmilos/scim-schema/src/Validator/SchemaValidator.php on line 86

ostrolucky added a commit to eqsgroup/scim-schema that referenced this issue Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant