Skip to content

PyJava1984/zally

 
 

Repository files navigation

Build Status Codacy Badge Codacy Badge

Zally: A minimalistic, simple-to-use API linter

... for OpenAPI 3 and Swagger 2 API specifications.

Its standard configuration will check your APIs against the rules defined in Zalando's RESTful Guidelines, but anyone can use it out-of-the-box.

Zally's easy-to-use CLI uses the server in the background so that you can check your API on the spot. It also features an intuitive Web UI that shows implemented rules and lints external files and (with its online editor) API definitions.

More about Zally:

  • OpenAPI-friendly: accepts OpenAPI 3 and Swagger Specifications .yaml and JSON formats; includes a server that lints your OpenAPI files; and parses OpenAPI files using swagger-parser
  • Using x-zally-ignore extension in your API definition, you can disable rules for a specific API
  • Applying rule changes is only necessary in the server component
  • API-specific code written in Java 8 with Spring Boot for better integration
  • Rule implementation is optimal/possible in Kotlin

Technical Dependencies

  • Kotlin and Java 8 (server) with Spring Boot
  • Golang 1.7+: for CLI
  • Node.js 7.6+: for web UI

Installation and Usage

To give Zally a quick try, first run the server locally and then use the CLI tool.

The Server Readme, CLI Readme and Web UI Readme include more detailed installation steps for each component.

Quick start guide

You can build and run the whole Zally stack (web-ui, server and database) by executing this script:

./build-and-run.sh

Web UI is accessible on http://localhost:8080; Zally server on http://localhost:8000

To run zally with github integration:

export GITHUB_OAUTH_TOKEN=your_github_oauth_token
export GITHUB_SECRET=your_github_secret

./build-and-run.sh --bark

Github webhook endpoint is accessible on http://localhost:8081/github_webhook

More details about how to register Webhooks.

Contributing

Zally welcomes contributions from the open source community. To get started, take a look at our contributing guidelines. Then check our Project Board and Issues Tracker for ideas.

Roadmap

For Zally version 1.5, we're focusing on:

  • Making Zally easier to extend and adjust to custom guidelines and rules
  • Better integration testing approaches
  • Making further rules compatible with OpenAPI 3
  • Providing more utilities for check developers
  • Improving check execution process
  • Provide high-quality documentation for check developers, operators and users

If you have ideas for these items, please let us know.

Contact

Feel free to contact one the maintainers.

License

MIT license with an exception. See license file.

About

A minimalistic, simple-to-use API linter

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 72.6%
  • JavaScript 15.4%
  • Go 10.2%
  • HTML 0.8%
  • Shell 0.5%
  • CSS 0.4%
  • Dockerfile 0.1%