ory / ory/sdk

Identity state enum is not exposed in the go kratos sdk

Open
#420 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
178
Forks
96
Avg merge
6d 23h
Merged PRs (30d)
3

Description

Preflight checklist
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.