update README.md
This commit is contained in:
@@ -67,3 +67,4 @@ extra_form = ["axum-extra/form"]
|
||||
extra_protobuf = ["axum-extra/protobuf"]
|
||||
extra_all = ["extra", "extra_query", "extra_form", "extra_protobuf"]
|
||||
all_types = ["json", "form", "query", "typed_header", "msgpack", "yaml", "extra_all"]
|
||||
full = ["all_types", "422", "into_json"]
|
||||
|
||||
@@ -62,12 +62,12 @@ When validation errors occur, the extractor will automatically return 400 with v
|
||||
| extra | Enables support for `Cached`, `WithRejection` from `axum-extra` | ❌ | ✅ |
|
||||
| extra_query | Enables support for `Query` from `axum-extra` | ❌ | ✅ |
|
||||
| extra_form | Enables support for `Form` from `axum-extra` | ❌ | ✅ |
|
||||
| extra_protobuf | Enables support for `Protobuf` from `axum-extra` | ❌ | ❌ |
|
||||
| extra_all | Enables support for all extractors above from `axum-extra` | ❌ | 🚧 |
|
||||
| all_types | Enables support for all extractors above | ❌ | 🚧 |
|
||||
| extra_protobuf | Enables support for `Protobuf` from `axum-extra` | ❌ | ✅ |
|
||||
| extra_all | Enables support for all extractors above from `axum-extra` | ❌ | ✅ |
|
||||
| all | Enables support for all extractors above | ❌ | 🚧 |
|
||||
| 422 | Use `422 Unprocessable Entity` instead of `400 Bad Request` as the status code when validation fails | ❌ | ✅ |
|
||||
| into_json | Validation errors will be serialized into JSON format and returned as the HTTP body | ❌ | ✅ |
|
||||
|
||||
| full | Enables all features | ❌ | 🚧 |
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License.
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
[feature_default]
|
||||
|
||||
[feature_all_types]
|
||||
features = "all_types"
|
||||
|
||||
[feature_into_json]
|
||||
[feature_all_types_into_json]
|
||||
features = "all_types into_json"
|
||||
|
||||
[feature_422]
|
||||
[feature_all_types_422]
|
||||
features = "all_types 422"
|
||||
|
||||
[feature_422_into_json]
|
||||
[feature_all_types_422_into_json]
|
||||
features = "all_types 422 into_json"
|
||||
Reference in New Issue
Block a user