stainless
Stainless is an API SDK generator tool.
Installation
dagger install github.com/sagikazarmark/daggerverse/stainless@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd
Entrypoint
Return Type
Stainless !
Arguments
Name | Type | Description |
---|---|---|
token | Secret ! | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/stainless@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd call \
--token env:MYSECRET
func (m *myModule) example(token *Secret) *Stainless {
return dag.
Stainless(token)
}
@function
def example(token: dagger.Secret) -> dag.Stainless:
return (
dag.stainless(token)
)
@func()
example(token: Secret): Stainless {
return dag
.stainless(token)
}
Types
Stainless 🔗
uploadSpec() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
projectName | String ! | - | Stainless project name. |
openapi | File ! | - | OpenAPI spec file. |
config | File | - | Stainless config file. |
commitMessage | String | - | Commit message (following conventional commit format). |
Example
dagger -m github.com/sagikazarmark/daggerverse/stainless@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd call \
--token env:MYSECRET upload-spec --project-name string --openapi file:path
func (m *myModule) example(token *Secret, projectName string, openapi *File) *File {
return dag.
Stainless(token).
UploadSpec(projectName, openapi)
}
@function
def example(token: dagger.Secret, project_name: str, openapi: dagger.File) -> dagger.File:
return (
dag.stainless(token)
.upload_spec(project_name, openapi)
)
@func()
example(token: Secret, projectName: string, openapi: File): File {
return dag
.stainless(token)
.uploadSpec(projectName, openapi)
}