You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Spectral](https://stoplight.io/open-source/spectral) is an open-source API style guide enforcer and linter.
This adds a convenience method for linting in Julia using spectral.
```julia
OpenAPI.lint(
spec::AbstractString; # the OpenAPI specification to use
use_sudo::Bool=false # whether to use sudo while invoking docker
)
OpenAPI.lint(
spec_dir::AbstractString; # folder containing the specification file
spec_file::AbstractString; # the specification file
use_sudo::Bool=false # whether to use sudo while invoking docker
)
```
[Spectral](https://stoplight.io/open-source/spectral) is an open-source API style guide enforcer and linter. OpenAPI.jl includes a convenience method to use the Spectral OpenAPI linter from Julia.
320
+
321
+
```julia
322
+
# specify a specification file to start with
323
+
OpenAPI.lint(
324
+
spec::AbstractString; # the OpenAPI specification to use
325
+
use_sudo::Bool=false# whether to use sudo while invoking docker
326
+
)
327
+
328
+
# specify a folder and specification file name to start with
329
+
OpenAPI.lint(
330
+
spec_dir::AbstractString; # folder containing the specification file
331
+
spec_file::AbstractString; # the specification file
332
+
use_sudo::Bool=false# whether to use sudo while invoking docker
0 commit comments