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

Breaking change in user / group schema api #1568

Closed
jarek-chmiel opened this issue Oct 14, 2024 · 8 comments
Closed

Breaking change in user / group schema api #1568

jarek-chmiel opened this issue Oct 14, 2024 · 8 comments

Comments

@jarek-chmiel
Copy link

jarek-chmiel commented Oct 14, 2024

Describe the bug?

Between version 18 and 19 'unique' property of GroupSchemaAttributes and UserSchemaAttributes changed from string to boolean.
https://developer.okta.com/okta-sdk-java/apidocs/com/okta/sdk/resource/model/UserSchemaAttribute.html#getUnique()

It is impossible to use sdk in version 19, even on preview environment.

What is expected to happen?

https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Schema/#tag/Schema/operation/getUserSchema 'unique' property value should be of type string and sdk should be able to handle 'UNIQUE_VALIDATED' value returned by API

What is the actual behavior?

https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Schema/#tag/Schema/operation/getUserSchema 'unique' property value is of type boolean and sdk is not able to handle 'UNIQUE_VALIDATED' value returned by API

Reproduction Steps?

Create a schema with one of the properties being 'unique' and fetch schema

Additional Information?

No response

Java Version

openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (build 21.0.2+13-LTS, mixed mode, sharing)

SDK Version

19.0.1

OS version

No response

@arvindkrishnakumar-okta
Copy link
Contributor

arvindkrishnakumar-okta commented Oct 14, 2024

@jarek-chmiel Thanks for posting. This seems to be caused by a recent Open API spec change as part of the major release. Will look into getting this fixed.

@jarek-chmiel
Copy link
Author

@arvindkrishnakumar-okta thank you very much, do you know when it will be fixed and 19.0.2 released?

@arvindkrishnakumar-okta
Copy link
Contributor

@jarek-chmiel Expect the next SDK version with fix to be released by end of next week.

@pelayolartategui
Copy link

Hello, any news on this issue?

@arvindkrishnakumar-okta
Copy link
Contributor

arvindkrishnakumar-okta commented Oct 29, 2024

Planning a release by end of this week or next. Please stay tuned.

@pelayolartategui
Copy link

@arvindkrishnakumar-okta any news? Issue closed but no new version released

@arvindkrishnakumar-okta
Copy link
Contributor

@arvindkrishnakumar-okta
Copy link
Contributor

Next version 20.0.0 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants