Skip to content

Remove serde_norway dependency #1565

@juhaku

Description

@juhaku

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingIndicates this PR / commit / patch will introduce a breaking changeenhancementNew feature or request

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions