Skip to content

DateTime type in ScimAttribute #490

@BlueRui

Description

@BlueRui

Hi,
I tried to create an extension with an attribute of DateTime type. The example on the readme.md file shows it can be set using "type" in ScimAttribute as follows:

  @ScimAttribute(
    description="A Boolean value indicating the User's administrative status.",
    type=Type.BOOLEAN
    )

But ScimAttribute does not seem to support "type". I tried using java.util.Date for DateTime without setting the type in ScimAttribute. But in response, the DateTime value is displayed as the fastTime value as shown below rather than in xsd:dateTime format.

    "urn:mem:params:scim:schemas:extension:DateExtension": {
        "dateModified": 1704302059063,
        "dateCreated": 1704302059063
    }

What's the right way to add a DateTime attribute? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions