juhaku / utoipa

Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
Apache License 2.0
2.23k stars 173 forks source link

Fix negative value parsing on schema attributes #1031

Closed juhaku closed 3 weeks ago

juhaku commented 3 weeks ago

This commit fixes issue where negative numbers caused parsing error by rust_analyzer however the code compiled correctly and created valid code.

The issue is fixed for validation attributes and AnyValue which is used in various places. The original issue only reported the issue in validation attributes.

Fixes #994