Skip to main content

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

stinky_noodle-0.0.8.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

stinky_noodle-0.0.8-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file stinky_noodle-0.0.8.tar.gz.

File metadata

  • Download URL: stinky_noodle-0.0.8.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

Hashes for stinky_noodle-0.0.8.tar.gz
Algorithm Hash digest
SHA256 ebca090179797750dda5cd196eb54882eca64f607f453d97ae13580d4dedde89
MD5 d8d0348ae333a904b90183717c62284a
BLAKE2b-256 87f19a0555c6a5b8b327bdbc27148adff19bfa4b44119cb9193c60cc8f4c54db

See more details on using hashes here.

File details

Details for the file stinky_noodle-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for stinky_noodle-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d1bf4eca70c09ca638945f2efae452861f603de0334cc066b2074ba5bf4e4dc4
MD5 59d212414958a6976f01702ef19544e8
BLAKE2b-256 589cda047d09cb3d122a39843f10cb642405f5f5805334d19ed768aef386ead0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page