Skip to content

Commit

Permalink
fix: add missing code discriminator in updateVerificationFlow (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Apr 5, 2023
1 parent db066b7 commit 21576be
Show file tree
Hide file tree
Showing 12 changed files with 383 additions and 54 deletions.
2 changes: 2 additions & 0 deletions .schema/openapi/patches/selfservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@
path: /components/schemas/updateVerificationFlowBody/oneOf
value:
- "$ref": "#/components/schemas/updateVerificationFlowWithLinkMethod"
- "$ref": "#/components/schemas/updateVerificationFlowWithCodeMethod"
- op: add
path: /components/schemas/updateVerificationFlowBody/discriminator
value:
propertyName: method
mapping:
link: "#/components/schemas/updateVerificationFlowWithLinkMethod"
code: "#/components/schemas/updateVerificationFlowWithCodeMethod"
- op: add
path: /components/schemas/verificationFlowState/enum
value:
Expand Down
4 changes: 2 additions & 2 deletions internal/client-go/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ docs/UpdateSettingsFlowWithProfileMethod.md
docs/UpdateSettingsFlowWithTotpMethod.md
docs/UpdateSettingsFlowWithWebAuthnMethod.md
docs/UpdateVerificationFlowBody.md
docs/UpdateVerificationFlowWithCodeMethodBody.md
docs/UpdateVerificationFlowWithCodeMethod.md
docs/UpdateVerificationFlowWithLinkMethod.md
docs/VerifiableIdentityAddress.md
docs/VerificationFlow.md
Expand Down Expand Up @@ -219,7 +219,7 @@ model_update_settings_flow_with_profile_method.go
model_update_settings_flow_with_totp_method.go
model_update_settings_flow_with_web_authn_method.go
model_update_verification_flow_body.go
model_update_verification_flow_with_code_method_body.go
model_update_verification_flow_with_code_method.go
model_update_verification_flow_with_link_method.go
model_verifiable_identity_address.go
model_verification_flow.go
Expand Down
2 changes: 1 addition & 1 deletion internal/client-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Class | Method | HTTP request | Description
- [UpdateSettingsFlowWithTotpMethod](docs/UpdateSettingsFlowWithTotpMethod.md)
- [UpdateSettingsFlowWithWebAuthnMethod](docs/UpdateSettingsFlowWithWebAuthnMethod.md)
- [UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md)
- [UpdateVerificationFlowWithCodeMethodBody](docs/UpdateVerificationFlowWithCodeMethodBody.md)
- [UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md)
- [UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md)
- [VerifiableIdentityAddress](docs/VerifiableIdentityAddress.md)
- [VerificationFlow](docs/VerificationFlow.md)
Expand Down
30 changes: 30 additions & 0 deletions internal/client-go/model_update_verification_flow_body.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/httpclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ docs/UpdateSettingsFlowWithProfileMethod.md
docs/UpdateSettingsFlowWithTotpMethod.md
docs/UpdateSettingsFlowWithWebAuthnMethod.md
docs/UpdateVerificationFlowBody.md
docs/UpdateVerificationFlowWithCodeMethodBody.md
docs/UpdateVerificationFlowWithCodeMethod.md
docs/UpdateVerificationFlowWithLinkMethod.md
docs/VerifiableIdentityAddress.md
docs/VerificationFlow.md
Expand Down Expand Up @@ -220,7 +220,7 @@ model_update_settings_flow_with_profile_method.go
model_update_settings_flow_with_totp_method.go
model_update_settings_flow_with_web_authn_method.go
model_update_verification_flow_body.go
model_update_verification_flow_with_code_method_body.go
model_update_verification_flow_with_code_method.go
model_update_verification_flow_with_link_method.go
model_verifiable_identity_address.go
model_verification_flow.go
Expand Down
2 changes: 1 addition & 1 deletion internal/httpclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Class | Method | HTTP request | Description
- [UpdateSettingsFlowWithTotpMethod](docs/UpdateSettingsFlowWithTotpMethod.md)
- [UpdateSettingsFlowWithWebAuthnMethod](docs/UpdateSettingsFlowWithWebAuthnMethod.md)
- [UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md)
- [UpdateVerificationFlowWithCodeMethodBody](docs/UpdateVerificationFlowWithCodeMethodBody.md)
- [UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md)
- [UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md)
- [VerifiableIdentityAddress](docs/VerifiableIdentityAddress.md)
- [VerificationFlow](docs/VerificationFlow.md)
Expand Down
Loading

0 comments on commit 21576be

Please sign in to comment.