ory / ory/sdk

[Dart ory_kratos_client] UiNodeAttributes incorrect discriminatorFieldName

Open
#275 0 comments 16 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
Describe the bug

Incorrect discriminatorFieldName value in UiNodeAttributes class
image
which should be:
image

It results in UnsupportedError: "Couldn't deserialize oneOf for the discriminator value: ${discValue}"

Reproducing the bug
  1. Start a registration flow,
  2. Attempt to deserialize response
Relevant log output

No response

Relevant configuration

No response

Version

0.13.1

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

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

Locate the generated Dart UiNodeAttributes class and inspect its discriminatorFieldName value. Reproduce the registration-flow response deserialization described in the issue; the work is done when that response deserializes without the UnsupportedError and the discriminator matches the API response.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.