Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1scim~1v2~1organizations~1{org}~1Users~1{scim_user_id}/patch #5874

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the JSON ref for the example

#/paths/~1scim~1v2~1organizations~1{org}~1Users~1{scim_user_id}/patch/requestBody/content/application~1json/examples/default/value

There isn't a oneOf in #/paths/~1scim~1v2~1organizations~1{org}~1Users~1{scim_user_id}/patch/requestBody/content/application~1json/schema/properties/Operations/items/properties/value that has displayName.

The closest is #/paths/~1scim~1v2~1organizations~1{org}~1Users~1{scim_user_id}/patch/requestBody/content/application~1json/schema/properties/Operations/items/properties/value/oneOf/0 which has

  • userName
  • externalId
  • givenName
  • familyName

Here's a snippet

          {
            "Operations" : [ {
              "op" : "replace",
              "value" : {
                "displayName" : "Octocat"
              }
            } ]
          }

Affected Schema Refs

#/paths/~1scim~1v2~1organizations~1{org}~1Users~1{scim_user_id}/patch

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghec

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions