spectral
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/spectral@b39678ceffc8bb7ae1c4359828d6ebdf1aae6245
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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
document | StringKind ! | - | No description provided |
source | Directory | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
document | StringKind ! | - | 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