Comments (12)
Hey Steven/Kiran, just wanted to let you know this hasnβt fallen off our radar. I think we should have something for you early next week to try out.
from speakeasy.
Hey Team, we have just released a new version of the generator which supports hiding globals from the method signature which should get you what you want in terms of DX
To hide the global use the x-speakeasy-globals-hidden
extension documented here: https://www.speakeasyapi.dev/docs/customize-sdks/globals#hiding-global-parameters-from-method-signatures
I have also added a x-speakeasy-max-method-params
extension that you can define at the document level or operation level to allow you to control the shape of the signature more granularly if you wanted different handling of this per operation docs here: https://www.speakeasyapi.dev/docs/customize-sdks/methods#configuring-method-signatures
Let me know how you get on or if you need any additional help configuring this
from speakeasy.
How did that work out for you ?
from speakeasy.
Awesome let us know if you need any help on the rest of the setup. Like package publishing or anything else
from speakeasy.
Looking
from speakeasy.
To confirm Kiran you ran speakeasy configure github
to setup the GH workflow files ? Asking as in noticed youβre workflow is using an older version of our GH automation
from speakeasy.
Hey Kiran, we don't currently expect that our actions are triggered on a PR; because the "context" under which the github action runs is just "make a PR with a change to the default-branch of the repo, given a new openapi specification". In particular we're expecting GITHUB_REF
to be the default branch of the repo (usually main
).
So I'd just drop:
push:
branches:
- main
- release
pull_request:
branches:
- main
We could fix this up for you in a PR if you want?
from speakeasy.
Sorry for the delay, it got us talking about how to better support sub directories. Sending now
from speakeasy.
Here you go π dubinc/dub-ts#57
β’ Fix .github/sdk_generation.yml
to use our latest action. Setup through speakeasy configure github
β’ Change target repo to output: ./typescript
and move speakeasy config to root.
I suspect this didnt work out of the box because the SDK or github files was manually moved at some point.
from speakeasy.
If you run into any more issues we can hop on a call and sort it out quick.
( we are split across PST and GMT in case thatβs easier for Kiran)
from speakeasy.
π PR created π dubinc/dub-ts#58
from speakeasy.
Hey Kiran yup easy enough to do. Two ways:
β’ interactive option: use speakeasy configure targets
to change the output directory or just remove the output
field from the workflow file https://github.com/dubinc/dub-node/blob/main/.speakeasy/workflow.yaml#L10
β’ same for github, just remove the output directory option https://github.com/dubinc/dub-node/blob/main/.github/workflows/sdk-generation.yml#L26
Then on next gen it will generate into the root and you can delete typescript
from speakeasy.
Related Issues (20)
- [SPE-3180] Convenience function`bodyAsUtf8String()` in Java for `SDKError`
- [SPE-3183] Support oneOf schemas at the root level
- [SPE-3166] Support passing parent SDK to call its methods in Hooks
- [SPE-3247] Feature Request: Pulumi generation
- [SPE-3249] Overloaded constructor that takes only required properties HOT 1
- Support tsconfig.json customization HOT 1
- [SPE-3377] Feature: Duplicate entries in package.json HOT 1
- Speakeasy CLI install via CURL on Windows fails HOT 4
- [SPE-3285] Environment Variable support
- [SPE-3284] Capability to support custom resources and/or custom attributes within a generated resource
- [SPE-3296] Composite key import support (terraform) HOT 1
- [SPE-3152] Automatically generate `import.sh` file to include documentation instructions for adding `id` field via the `import` block in Terraform HOT 1
- [SPE-3376] Feature: Disable client side schema validation HOT 1
- [SPE-2137] oAuth Support (Unity)
- [SPE-3597] `x-speakeasy-match` supporting subkeys for terraform
- [SPE-3799] [BUG][Python SDK] Faulty behavior when using nullable and optional object properties HOT 2
- [SPE-3910] Multiple security schemes not supported by Python constructor HOT 3
- Support JSON streaming HOT 4
- No typing support for request objects and request operations for python SDK HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speakeasy.