Dagger
Search

spectral

No long description provided.

Installation

dagger install github.com/sagikazarmark/daggerverse/spectral@329116361218e383992277d7a3ca5d1acb1fc163

Entrypoint

Return Type
Spectral
Example
func (m *myModule) example() *Spectral  {
	return dag.
			Spectral()
}
@function
def example() -> dag.Spectral:
	return (
		dag.spectral()
	)
@func()
example(): Spectral {
	return dag
		.spectral()
}

Types

Spectral 🔗

container() 🔗

Return Type
Container !
Example
Function Spectral.container is not accessible from the spectral module
func (m *myModule) example()   {
	return dag.
			Spectral().
			Container()
}
@function
def example() -> :
	return (
		dag.spectral()
		.container()
	)
@func()
example():  {
	return dag
		.spectral()
		.container()
}

withSource() 🔗

Mount a source directory.

Return Type
WithSource !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
Function Spectral.withSource is not accessible from the spectral module
func (m *myModule) example(src )   {
	return dag.
			Spectral().
			WithSource(src)
}
@function
def example(src: ) -> :
	return (
		dag.spectral()
		.with_source(src)
	)
@func()
example(src: ):  {
	return dag
		.spectral()
		.withSource(src)
}

lint() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
documentStringKind !-No description provided
sourceDirectory -No description provided
Example
Function Spectral.lint is not accessible from the spectral module
func (m *myModule) example(document )   {
	return dag.
			Spectral().
			Lint(document)
}
@function
def example(document: ) -> :
	return (
		dag.spectral()
		.lint(document)
	)
@func()
example(document: ):  {
	return dag
		.spectral()
		.lint(document)
}

WithSource 🔗

lint() 🔗

example usage: “dagger call with-source –src . lint –document openapi.yaml”

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
documentStringKind !-No description provided
Example
Function SpectralWithSource.lint is not accessible from the spectral module
Function SpectralWithSource.lint is not accessible from the spectral module
Function SpectralWithSource.lint is not accessible from the spectral module
Function SpectralWithSource.lint is not accessible from the spectral module