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

Handle objects without schemas #20

Open
azmeuk opened this issue May 29, 2024 · 3 comments
Open

Handle objects without schemas #20

azmeuk opened this issue May 29, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@azmeuk
Copy link
Contributor

azmeuk commented May 29, 2024

RFC7644 §3.4.3 detail partial responses (with the use of attributes/excludedAttributes) that do not contain a schemas.

   {
     "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
     "totalResults":100,
     "itemsPerPage":10,
     "startIndex":1,
     "Resources":[
       {
         "id":"2819c223-7f76-413861904646",
         "userName":"jsmith",
         "displayName":"Smith, James"
       },
       {
         "id":"c8596b90-7539-4f20968d1908",
         "displayName":"Smith Family"
       }
     ]
   }

We should make sure those objects are treated as generic Resource where the id field can be read, so client applications can make new requests for having details if needed.

@azmeuk azmeuk added the enhancement New feature or request label Jun 6, 2024
@azmeuk
Copy link
Contributor Author

azmeuk commented Aug 19, 2024

In the same time RFC7643 §3 indicates that:

      The "schemas" attribute is a REQUIRED attribute and is an array of
      Strings containing URIs that are used to indicate the namespaces
      of the SCIM schemas that define the attributes present in the
      current JSON structure. [...]
      All representations of SCIM schemas MUST include a
      non-empty array with value(s) of the URIs supported by that
      representation.

So, maybe RFC7644 §3.4.3 needs an errata?

@azmeuk
Copy link
Contributor Author

azmeuk commented Aug 19, 2024

Reported Errata 8084. If accepted, the same kind of errata should be reported for 3.4.2.

@azmeuk azmeuk changed the title Handle objects without schemas Objects without schemas? Aug 19, 2024
@azmeuk
Copy link
Contributor Author

azmeuk commented Aug 30, 2024

Phil Hunt rejects the errata but gives a few explanations:

As far as “schemas” being required, the example response is valid because it has the schemas attribute indicated as:

"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"

[...]
I think the confusion here is that “schemas” is required for the application/scim+json format, but the spec is silent on whether it is require for the “Resources” attribute of the ListResponse JSON structure.

So the OP example is valid.

@azmeuk azmeuk changed the title Objects without schemas? Handle objects without schemas Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant