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.9.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stinky_noodle-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 0e04a1ce710caa956e636425bc12916200ba460698e9a7627f6207a2470bcd95
MD5 458309f2f43034dc4216ac242f41659b
BLAKE2b-256 b0eb04bcf245bd5d4324b373e66b5f96d1e521dc9cae9bf7c75b11a4d0151dd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stinky_noodle-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b360419452bfb0bebfc456817156b6ac7a5eebfcaae8451e426498dd1b4aff0c
MD5 05c750c860408891c65fdcbeea26ba1b
BLAKE2b-256 fb962c99c1248c1c19b69a42788e369b47f7ca35f012b46abdc4d49f05f48cfc

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