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

[request] Add other data_types for integers like u8 and u16 #516

Closed
RaulTrombin opened this issue Dec 8, 2023 · 2 comments · Fixed by #523
Closed

[request] Add other data_types for integers like u8 and u16 #516

RaulTrombin opened this issue Dec 8, 2023 · 2 comments · Fixed by #523

Comments

@RaulTrombin
Copy link
Contributor

https://github.com/paperclip-rs/paperclip/blob/master/core/src/v2/models.rs#L67

@RaulTrombin
Copy link
Contributor Author

From API v2 spec seens thtat types other thant i32 and i64 doesn't exist.
Maybe we can define the minimum and maximum fields for each different integer types:
https://swagger.io/specification/v2/

type: array
items:
  type: integer
  minimum: 0
  maximum: 63

@tiagolobocastro
Copy link
Collaborator

We should be able to easily add the min and max for the rust type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants