Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPE-2836] Terraform generation should preferentially work with application/json content types #454

Open
ThomasRooney opened this issue Feb 6, 2024 · 0 comments
Labels
ClientSDKGeneration Created by Linear-GitHub Sync Low priority Created by Linear-GitHub Sync terraform Created by Linear-GitHub Sync

Comments

@ThomasRooney
Copy link
Member

ThomasRooney commented Feb 6, 2024

Given a request or response body with multiple content types, we should preferentially assume that the operation is working with application/json. Currently we produce an error.

failed to generate output -- failed to run script Error: Duplicate x-speakeasy-entity-operation: Pet#create in addPet_json and undefined
    at ./resources.ts:764:20:*(27)                                                                                                      
    at sort (native)                                                                                                                    
    at ./resources.ts:762:16:*(409)                                                                                                     
    at forEach (native)                                                                                                                 
    at collectResources (./resources.ts:587:29:*(101))                                                                                  
    at main.ts:23:52:*(94)                                                                                                              
: script runtime failure                                                                                                                
failed to generate SDKs for terraform ✖

api.yaml.zip

SPE-2836

@ThomasRooney ThomasRooney changed the title Terraform generation should preferentially work with application/json content types [SPE-2836] Terraform generation should preferentially work with application/json content types Feb 6, 2024
@ThomasRooney ThomasRooney added ClientSDKGeneration Created by Linear-GitHub Sync terraform Created by Linear-GitHub Sync labels Mar 24, 2024
@ThomasRooney ThomasRooney added the Low priority Created by Linear-GitHub Sync label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ClientSDKGeneration Created by Linear-GitHub Sync Low priority Created by Linear-GitHub Sync terraform Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant