Remove the serde-norway dependency and use the yaml-serde solely the only yaml provider. This will be a breaking change.
Current implementation
#[cfg(feature = "yaml")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "yaml")))]
pub fn to_yaml(&self) -> Result<String, serde_norway::Error> {
serde_norway::to_string(self)
}
/// Converts this [`OpenApi`] to YAML String. This method essentially calls [`yaml_serde::to_string`].
#[cfg(feature = "yaml_serde")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "yaml")))]
pub fn to_yaml_serde(&self) -> Result<String, yaml_serde::Error> {
yaml_serde::to_string(self)
}
New implementation after removing serde-norway
/// Converts this [`OpenApi`] to YAML String. This method essentially calls [`yaml_serde::to_string`].
#[cfg(feature = "yaml")]
pub fn to_yaml(&self) -> Result<String, yaml_serde::Error> {
yaml_serde::to_string(self)
}
Ref #1559
Remove the
serde-norwaydependency and use theyaml-serdesolely the only yaml provider. This will be a breaking change.Current implementation
New implementation after removing
serde-norwayRef #1559