Skip to content

Releases: cpunion/axum-params

v0.3.0: Process JSON escaped characters correctly in JSON parser

02 Jan 04:03
7925f5d
Compare
Choose a tag to compare

Breaking Changes

  • Process JSON escaped characters correctly in JSON parser
    • Now properly handles all standard JSON escape sequences (\", \\, \/, \b, \f, \n, \r, \t, \uXXXX)
    • Fixed handling of Unicode escape sequences
    • Improved error handling for invalid escape sequences

v0.2.0: port rack QueryParser

30 Dec 10:58
a745838
Compare
Choose a tag to compare

Changes:

v0.1.0

27 Dec 17:22
b0e6f08
Compare
Choose a tag to compare

Features

  • Unified Parameter Handling

    • Path parameters
    • Query parameters
    • Form data
    • Multipart form data
    • JSON body
    • All parameter types can be processed simultaneously
    • Every parameter type supports structured data (arrays and objects)
  • Rails-like Tree-Structured Parameters

    • Nested parameter handling similar to Rails' strong parameters
    • Support for deeply nested structures with arrays and objects
    • Files can be placed at any position in the parameter tree, e.g. post[attachments][][file]
    • Seamlessly mix files with other data types in the same request
    • Automatic parameter parsing and type conversion
    • Handle complex forms with multiple file uploads in nested structures

Example structure:

post: {
    title: String,
    content: String,
    tags: Vec<String>,
    cover: UploadFile,
    attachments: Vec<{
        file: UploadFile,
        description: String
    }>
}