Skip to content

Commit

Permalink
Merge pull request #21 from clerk/feat-add-fixes-overlay-to-workflow
Browse files Browse the repository at this point in the history
feat: add fixes to openapi spec
  • Loading branch information
speakeasybot authored Jul 19, 2024
2 parents 7826671 + ff1fc2c commit 4adc6a9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
27 changes: 27 additions & 0 deletions fixes.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4adc6a9

Please sign in to comment.