[Dart ory_kratos_client] UiNodeAttributes incorrect discriminatorFieldName
Open
Nobody has claimed this yet.
bug
- 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.
- This issue affects my Ory Network project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
Incorrect discriminatorFieldName value in UiNodeAttributes class
which should be:
It results in UnsupportedError: "Couldn't deserialize oneOf for the discriminator value: ${discValue}"
Reproducing the bug
- Start a registration flow,
- 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
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
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