1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-20 20:26:50 +00:00

Change requirement string mapping to match Unterformular implementation

This commit is contained in:
Paul-Christian Volkmer 2023-09-30 12:04:45 +02:00
parent 108aae329c
commit 21e31f35d1
2 changed files with 5 additions and 6 deletions

2
Cargo.lock generated
View File

@ -268,7 +268,7 @@ dependencies = [
[[package]] [[package]]
name = "osc-variant" name = "osc-variant"
version = "0.4.0" version = "0.4.1"
dependencies = [ dependencies = [
"clap", "clap",
"clap_complete", "clap_complete",

View File

@ -325,11 +325,10 @@ impl Requires for DataForm {
.get_required_entries(all) .get_required_entries(all)
.iter() .iter()
.map(|inner_entry| match inner_entry { .map(|inner_entry| match inner_entry {
Requirement::PropertyCatalogue(y) => Some(y.to_listed_string()), Requirement::PropertyCatalogue(_) => Some(inner_entry.to_string()),
Requirement::ExternalPropertyCatalogue(name) => Some(format!( Requirement::ExternalPropertyCatalogue(_) => {
"Merkmalskatalog (-) '{}' - hier nicht enthalten", Some(inner_entry.to_string())
style(name).yellow() }
)),
_ => None, _ => None,
}) })
.filter(Option::is_some) .filter(Option::is_some)