apache / apache/directory-scimple

DateTime type in ScimAttribute

Open
#490 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

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:
```java
@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.
```json
"urn:mem:params:scim:schemas:extension:DateExtension": {
"dateModified": 1704302059063,
"dateCreated": 1704302059063
}
```
What's the right way to add a DateTime attribute? Thanks

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.