Dagger
Search

spectral

No long description provided.

Installation

dagger install github.com/sagikazarmark/daggerverse/spectral@a46384b4f9913edc5bc637d592e57fce8b528001

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()
}

lint() 🔗

Lint JSON/YAML documents.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
documents[ObjectKind ! ] !-No description provided
rulesetFile !-No description provided
failSeverityStringKind -No description provided
displayOnlyFailuresBooleanKind -No description provided
resolverFile -No description provided
encodingStringKind -No description provided
verboseBooleanKind -No description provided
quietBooleanKind -No description provided
Example
Function Spectral.lint is not accessible from the spectral module
func (m *myModule) example(documents , ruleset )   {
	return dag.
			Spectral().
			Lint(documents, ruleset)
}
@function
def example(documents: , ruleset: ) -> :
	return (
		dag.spectral()
		.lint(documents, ruleset)
	)
@func()
example(documents: , ruleset: ):  {
	return dag
		.spectral()
		.lint(documents, ruleset)
}