ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
139 stars 86 forks source link

[dotnet] KratosUiNode.GroupEnum does not contain 'code' member #231

Closed lus closed 1 year ago

lus commented 1 year ago

Preflight checklist

Describe the bug

I am using the dotnet SDK to implement the UI. No I came across the issue, that the GetSelfServiceVerificationFlow and GetSelfServiceVerificationFlowAsync methods always return null, even though the flow exists (I can retrieve it manually) and no exception is thrown. I can't explain why that happens, so I hope that someone here is able to.

Reproducing the bug

  1. Set up a working v0alpha2Api client
  2. Try to retrieve a selfservice verification flow
  3. Get null

Relevant log output

No response

Relevant configuration

No response

Version

0.10.1

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Other

Additional Context

No response

lus commented 1 year ago

It seems like I found the issue. The account verification UI contains a node with the group property set to code. The KratosUiNode.GroupEnum (https://github.com/ory/sdk/blob/master/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNode.cs#L40) does not contain this member, so the response cannot be deserialized.

lus commented 1 year ago

Update: When using the Ory.Client package which seems to implement every API of Ory's projects at once everything works fine, so the old Ory.Kratos.Client package seems to be outdated.

jonas-jonas commented 1 year ago

The Kratos SDK was updated since then, which should've solved this problem. Please re-open, if you're still experiencing issues.