GREsau / GREsau/okapi

ParameterValue enum with fields does not follow serde rename

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
740
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Enum fields like `allow_reserved` in `ParameterValue` is not following the serde rename: https://github.com/GREsau/okapi/blob/d3bc6583dd828d37dc22f010ca8d51bfd1866a0a/okapi/src/openapi3.rs#L276-L298

It needs `rename_all_fields` specified to work on the enum fields: https://serde.rs/container-attrs.html

This causes it to fail OpenAPI spec validation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.