Stinky noodle is a Python-based OpenAPI spec linter compatible with spectral rulesets
Project description
Stinky noodle
Stiny noodle is a Python OpenAPI spec linter that can read spectral
(https://github.com/stoplightio/spectral) rule sets. This project is very early stage and not stable at all. The main reason for creating this project is to make it much easier to use with Python projects.
Getting started
Run pip install stinky-noodle
and then run noodle <path-to-spec-file>
to start linting.
Rule sets
Stinky noodle fully relies on rule sets as defined in the spectral
docs and does not have its own syntax:
https://meta.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets
You can use a rule set by adding the following argument:
noodle -s <path-to-ruleset>[ -d <dir-containing-custom-module>][ -m <cusom-module-name>] <path-to-spec-file>
Caveats
Spectral linting rules can make use of custom functions written in js. There is currently no way of automatically converting those functions in python built into Stink noodle. Functions always have to be manually converted. See the Functions
section on how to do that.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stinky_noodle-0.0.5.tar.gz
.
File metadata
- Download URL: stinky_noodle-0.0.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be12d95c815253822e2c15dc6a935319cb99ce6ea8f05352e01364b1611b5082 |
|
MD5 | 38234492f561f9af91a7ab646dee4757 |
|
BLAKE2b-256 | 5314cc475ceedef365016b84f498d44dd2c6a29879fa7ffaca9c5beb8c81638b |
File details
Details for the file stinky_noodle-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: stinky_noodle-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a47636d3516cc4029451d188cd58bf08694c53928a69ad8872ead789d46da971 |
|
MD5 | 9a9fa7c5869b1fc83409da88dd39a537 |
|
BLAKE2b-256 | 37f0134837fe215580d977487edbcfecd62fb95646683fdcc8eb43da086f14c4 |