Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for free form additional properties #495

Merged
merged 2 commits into from
Feb 20, 2023

Commits on Feb 20, 2023

  1. Add support for free form additional properties

    Add support for free form additional properties which are used to define
    map field value types. This commit adds free form support for `ToSchema`
    and `IntoParams` with following syntax.
    ```rust
     #[derive(ToSchema)]
     struct Map {
         #[schema(additional_properties)]
         map: HashMap<String, String>,
     }
    
     #[derive(IntoParams)]
     struct Map {
         #[param(additional_properties)]
         map: HashMap<String, String>,
     }
    ```
    juhaku committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    7319d76 View commit details
    Browse the repository at this point in the history
  2. Update docs

    juhaku committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    d819059 View commit details
    Browse the repository at this point in the history