Dagger
Search

stainless

Stainless is an API SDK generator tool.

Installation

dagger install github.com/sagikazarmark/daggerverse/stainless@v0.2.0

Entrypoint

Return Type
Stainless !
Arguments
NameTypeDescription
tokenSecret !No description provided
Example
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
NameTypeDefault ValueDescription
projectNameString !-Stainless project name.
openapiFile !-OpenAPI spec file.
configFile -Stainless config file.
commitMessageString -Commit message (following conventional commit format).
Example
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)
}