The updateVerificationFlowBody
OpenAPI type is missing the code
enum variant
#2943
Closed
4 of 6 tasks
Labels
bug
Something is not working.
Preflight checklist
Describe the bug
Hey, with the recent update to v0.11.0 and the additional
code
method for theverification
flow, it seems that the OpenAPI type enum hasn't been updated, which means downstream clients are not able to passupdateVerificationFlowWithCodeMethod
to theupdateVerificationFlowBody
operation.From what I've gathered, it seems that operation is missing a patch to allow the other variant of the enum at
https://github.com/ory/kratos/blob/master/.schema/openapi/patches/selfservice.yaml#L79-L88
which I think should look something like this?
Reproducing the bug
N/A, but the resulting codegen that is wrong is https://github.com/ory/sdk/blob/627c129c69423e9246a21cb86fdfe54fedd87721/clients/kratos/typescript/api.ts#L3183 which should be
export type UpdateVerificationFlowBody = UpdateVerificationFlowWithLinkMethod | UpdateVerificationFlowWithCodeMethodBody;
.This is apparaent when consuming the SDK and not being able to update a verification flow with the
code
method.Relevant log output
No response
Relevant configuration
Version
v0.11.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Other
Additional Context
No response
The text was updated successfully, but these errors were encountered: