Rust: Enum should use internal tagging when types are the same
BelfordZ opened this issue ยท 1 comments
BelfordZ commented
for example, we currently produce this:
pub type SimpleTypes = serde_json::Value;
which should infact be:
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum SimpleTypes {
#[serde(rename = "string")]
String,
#[serde(rename = "array")]
Array,
#[serde(rename = "object")]
Object,
#[serde(rename = "number")]
Number,
#[serde(rename = "boolean")]
Boolean,
#[serde(rename = "integer")]
Integer
}
BelfordZ commented
๐ This issue has been resolved in version 1.8.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐