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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stinky_noodle-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 a52b48ce15c2a71b93b2c25c8d89a696c632564fc53c15eb0089974186494b50
MD5 985a0941ed18e7d4d5179b43770c023e
BLAKE2b-256 aa558f40971dffdb9bf997e2bfd491c7c5f16758e8649ba88e1df26b9564e958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stinky_noodle-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d813901048cc36863605cc64ef138228b7cdb94d88b22ca7911160908d573b60
MD5 f9498d1f8ef2c9a66f64319ec4a0e8fe
BLAKE2b-256 4b06efae452686562111353facef0696aba57a46305f6772812c7d2d62b4e5b6

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