1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 11:46: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]]
name = "osc-variant"
version = "0.4.0"
version = "0.4.1"
dependencies = [
"clap",
"clap_complete",

View File

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