Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/altair-bueno/axum-garde


https://github.com/altair-bueno/axum-garde

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# axum-garde

Provide [garde](https://github.com/jprochazk/garde) validation on your
[axum](https://github.com/tokio-rs/axum) application.

# Getting started

The most important element on this library is [`WithValidation`], a composable
[`extractor`] that performs validation over some payload contents.

# Features

| Feature | Description | Default? |
| --------------------- | ---------------------------------------------------------------------------------------------- | -------- |
| `json` | Enables support for [`axum::extract::Json`] | ✅ |
| `form` | Enables support for [`axum::extract::Form`] | ✅ |
| `query` | Enables support for [`axum::extract::Query`] | ✅ |
| `axum-extra` | Enables support for [`axum_extra::extract::WithRejection`] and [`axum_extra::extract::Cached`] | ❌ |
| `axum-extra-protobuf` | Enables support for [`axum_extra::protobuf::Protobuf`] | ❌ |
| `axum-extra-query` | Enables support for [`axum_extra::extract::Query`] | ❌ |
| `axum-yaml` | Enables support for [`axum_yaml::Yaml`] | ❌ |
| `axum-msgpack` | Enables support for [`axum_msgpack::MsgPack`] and [`axum_msgpack::MsgPackRaw`] | ❌ |

# Useful links

[`withvalidation`]: crate::WithValidation
[`extractor`]: axum::extract