Skip to content

Commit

Permalink
fix: improve SDK discriminators (#3844)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Mar 24, 2024
1 parent 04f0231 commit c08b3ad
Show file tree
Hide file tree
Showing 8 changed files with 258 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .schema/openapi/patches/selfservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- "$ref": "#/components/schemas/updateRegistrationFlowWithOidcMethod"
- "$ref": "#/components/schemas/updateRegistrationFlowWithWebAuthnMethod"
- "$ref": "#/components/schemas/updateRegistrationFlowWithCodeMethod"
- "$ref": "#/components/schemas/updateRegistrationFlowWithPasskeyMethod"
- op: add
path: /components/schemas/updateRegistrationFlowBody/discriminator
value:
Expand All @@ -27,6 +28,7 @@
oidc: "#/components/schemas/updateRegistrationFlowWithOidcMethod"
webauthn: "#/components/schemas/updateRegistrationFlowWithWebAuthnMethod"
code: "#/components/schemas/updateRegistrationFlowWithCodeMethod"
passKey: "#/components/schemas/updateRegistrationFlowWithPasskeyMethod"
- op: add
path: /components/schemas/registrationFlowState/enum
value:
Expand All @@ -47,6 +49,7 @@
- "$ref": "#/components/schemas/updateLoginFlowWithWebAuthnMethod"
- "$ref": "#/components/schemas/updateLoginFlowWithLookupSecretMethod"
- "$ref": "#/components/schemas/updateLoginFlowWithCodeMethod"
- "$ref": "#/components/schemas/updateLoginFlowWithPasskeyMethod"
- op: add
path: /components/schemas/updateLoginFlowBody/discriminator
value:
Expand All @@ -58,6 +61,7 @@
webauthn: "#/components/schemas/updateLoginFlowWithWebAuthnMethod"
lookup_secret: "#/components/schemas/updateLoginFlowWithLookupSecretMethod"
code: "#/components/schemas/updateLoginFlowWithCodeMethod"
passkey: "#/components/schemas/updateLoginFlowWithPasskeyMethod"
- op: add
path: /components/schemas/loginFlowState/enum
value:
Expand Down Expand Up @@ -121,10 +125,10 @@
- "$ref": "#/components/schemas/updateSettingsFlowWithPasswordMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithProfileMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithOidcMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithOidcMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithTotpMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithWebAuthnMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithLookupMethod"
- "$ref": "#/components/schemas/updateSettingsFlowWithPasskeyMethod"
- op: add
path: /components/schemas/updateSettingsFlowBody/discriminator
value:
Expand All @@ -135,6 +139,7 @@
oidc: "#/components/schemas/updateSettingsFlowWithOidcMethod"
totp: "#/components/schemas/updateSettingsFlowWithTotpMethod"
webauthn: "#/components/schemas/updateSettingsFlowWithWebAuthnMethod"
passkey: "#/components/schemas/updateSettingsFlowWithPasskeyMethod"
lookup_secret: "#/components/schemas/updateSettingsFlowWithLookupMethod"
- op: add
path: /components/schemas/settingsFlowState/enum
Expand Down
40 changes: 40 additions & 0 deletions internal/client-go/model_update_login_flow_body.go

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

40 changes: 40 additions & 0 deletions internal/client-go/model_update_registration_flow_body.go

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

40 changes: 40 additions & 0 deletions internal/client-go/model_update_settings_flow_body.go

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

40 changes: 40 additions & 0 deletions internal/httpclient/model_update_login_flow_body.go

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

Loading

0 comments on commit c08b3ad

Please sign in to comment.