diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 8fba852..13afd6d 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -4,6 +4,8 @@ sources: clerk-java-sdk: inputs: - location: ./openapi.yml + overlays: + - location: fixes.yml registry: location: registry.speakeasyapi.dev/clerk/clerk/clerk-java-sdk targets: diff --git a/fixes.yml b/fixes.yml new file mode 100644 index 0000000..36e3b95 --- /dev/null +++ b/fixes.yml @@ -0,0 +1,27 @@ +overlay: 1.0.0 +info: + title: Overlay File to fix issues in OAS + version: 0.0.0 +actions: + - target: $["components"]["schemas"]["OTP"]["properties"]["strategy"]["enum"][*] + remove: true + - target: $["components"]["schemas"]["OTP"]["properties"]["strategy"]["enum"] + update: + - "phone_code" + - "email_code" + - "reset_password_email_code" + - "from_oauth_discord" + - "from_oauth_google" + - "from_oauth_apple" + - target: $["components"]["schemas"]["Oauth"]["properties"]["strategy"]["enum"][*] + remove: true + - target: $["components"]["schemas"]["Oauth"]["properties"]["strategy"]["enum"] + update: + - "oauth_google" + - "oauth_mock" + - "from_oauth_google" + - "from_oauth_discord" + - "oauth_apple" + - target: $["components"]["schemas"]["IdentificationLink"]["properties"]["type"]["enum"] + update: + - "oauth_apple"