Skip to content

fix: resolve issue #37 incorrect deserialization of config#38

Open
abdelrahmanomar1515 wants to merge 1 commit intoloco-rs:mainfrom
abdelrahmanomar1515:fix-issue-37
Open

fix: resolve issue #37 incorrect deserialization of config#38
abdelrahmanomar1515 wants to merge 1 commit intoloco-rs:mainfrom
abdelrahmanomar1515:fix-issue-37

Conversation

@abdelrahmanomar1515
Copy link
Copy Markdown

removed OpenAPIType enum in favor of specific structs for each configuration type. This helps serde deserialize the config properly. The previous config structure allowed the redoc property on OpenAPIConfig to be Some(OpenAPIType::Scalar). With this change this will not be allowed.

An existing PR #36 provided mitigation for the issue but not fully. See #37 (comment)

removed `OpenAPIType` enum in favor of specific structs for each
configuration type. This helps `serde` deserialize the config properly.
The previous config structure allowed the `redoc` property on
`OpenAPIConfig` to be `Some(OpenAPIType::Scalar)`. With this change this
will not be allowed.
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 this pull request may close these issues.

1 participant