Skip to content

Commit 05ebf6c

Browse files
committed
fix: fix dep
1 parent 2d6045e commit 05ebf6c

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

Cargo.lock

Lines changed: 1 addition & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ clap = { version = "4.5.2", features = ["derive"] }
2222
extism = "1.2.0"
2323
figment = { version = "0.10.15", features = ["env", "yaml"] }
2424
hcl-rs = "0.16.8"
25-
merge-yaml-hash = { git = "https://github.com/ZimboPro/merge-yaml-hash" }
25+
yaml-hash = "=0.3.0"
2626
openapiv3 = "2.0.0"
2727
plugin_core = { path = "./plugin_core" }
2828
reqwest = { version = "0.12.3", features = ["json", "blocking"] }

src/openapi/adapter/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use merge_yaml_hash::MergeYamlHash;
21
use openapiv3::{Operation, PathItem};
32
use serde::{Deserialize, Serialize};
43
use simplelog::debug;
54
use std::{ffi::OsStr, io::Read, path::PathBuf};
5+
use yaml_hash::YamlHash;
66

77
/// Finds all the files with the extension in the directory recursively
88
pub fn find_files(path: &std::path::Path, extension: &OsStr) -> Vec<PathBuf> {
@@ -30,11 +30,11 @@ pub fn open_file(filename: PathBuf) -> String {
3030
}
3131

3232
pub fn merge(files: Vec<String>) -> String {
33-
let mut hash = MergeYamlHash::new();
33+
let mut hash = YamlHash::new();
3434
debug!("Merging OpenAPI documents");
3535
for file in files {
3636
debug!("Merging file {:?}", file);
37-
hash.merge(&file);
37+
hash = hash.merge_str(&file).unwrap();
3838
}
3939

4040
hash.to_string()

0 commit comments

Comments
 (0)