Identity state enum is not exposed in the go kratos sdk
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 178
- Forks
- 96
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
We are currently in the middle of upgrading our kratos instance from v1.0.0 to v1.3.1. As we updated our go kratos client version to v1.3.8, we noticed that the identity state enum constants (IDENTITYSTATE_ACTIVE, IDENTITYSTATE_INACTIVE) are no longer available in the go kratos sdk. In the OpenAPI definition, they were renamed to StateActive and StateInactive. However, those constants are not part of the go kratos sdk.
Reproducing the bug
Check https://github.com/ory/kratos-client-go/blob/master/model_identity.go
Relevant log output
Relevant configuration
Version
1.3.8
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the referenced kratos-client-go model_identity.go file and compare its generated identity state definitions with the OpenAPI names StateActive and StateInactive. Confirm that the Go SDK exposes the identity state constants expected by users; the issue is complete when those constants are available in the SDK.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100