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

Enhance path tuple argument support #455

Merged
merged 2 commits into from
Jan 24, 2023
Merged

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Jan 24, 2023

Add support for following tuple path argument attributes in #[utoipa::path] attribute macro. This makes tuple style path arguments to be in same level with IntoParams attributes.

These attributes are only supported when path argument type is known.

  • format = ...
  • write_only
  • read_only
  • xml(...)
  • nullable
  • multiple_of = ...
  • maximum = ...
  • minimum = ...
  • exclusive_maximum = ...
  • exclusive_minimum = ...
  • max_length = ...
  • min_length = ...
  • pattern = ...
  • max_items = ...
  • min_items = ...

Update docs and tests.

Add support for following tuple path argument attributes in
`#[utoipa::path]` attribute macro. This makes tuple style path arguments
to be in same level with `IntoParams` attributes.

These attributes are only supported when path argument type is known.

 * `format = ...`
 * `write_only`
 * `read_only`
 * `xml(...)`
 * `nullable`
 * `multiple_of = ...`
 * `maximum = ...`
 * `minimum = ...`
 * `exclusive_maximum = ...`
 * `exclusive_minimum = ...`
 * `max_length = ...`
 * `min_length = ...`
 * `pattern = ...`
 * `max_items = ...`
 * `min_items = ...`

 Update docs and tests.
@juhaku juhaku merged commit 46fe673 into master Jan 24, 2023
@juhaku juhaku deleted the enhance-path-tuple-arguments branch January 24, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

1 participant