spectral
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/spectral@3b09fa72ef351fda3a68fb74e0e1625ad08c5044
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
Name | Type | Default Value | Description |
---|---|---|---|
documents | [ObjectKind ! ] ! | - | No description provided |
ruleset | File ! | - | No description provided |
failSeverity | StringKind | - | No description provided |
displayOnlyFailures | BooleanKind | - | No description provided |
resolver | File | - | No description provided |
encoding | StringKind | - | No description provided |
verbose | BooleanKind | - | No description provided |
quiet | BooleanKind | - | 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)
}