Skip to content

Commit

Permalink
Add enumerations to model
Browse files Browse the repository at this point in the history
Suppressed failures (2):
    formats::parse_formats_game_renderware_binary_stream_ksy - underscores in numbers, treated as strings according to YAML 1.2 rules
    formats::parse_formats_scientific_nt_mdt_nt_mdt_ksy - invalid KSY spec
  • Loading branch information
Mingun committed Sep 23, 2024
1 parent d425b9a commit 4f51cbe
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ mod formats {
if resource.ends_with("type_ternary_2nd_falsy.ksy") {
return;
}
// Contains underscores in numbers, which are threated as strings according to YAML 1.2 rules
// which serde_yml applies, but original compiler apply YAML 1.1 rules.
// See https://github.com/kaitai-io/kaitai_struct/issues/1132
if resource.ends_with("renderware_binary_stream.ksy") {
return;
}
// Invalid spec - defines some enum values as strings instead of numbers
// TODO: remove when https://github.com/kaitai-io/kaitai_struct_formats/pull/701 merged
if resource.ends_with("nt_mdt.ksy") {
return;
}

let _: Root = ksy.try_into().expect(&format!("incorrect KSY {}", resource));
}
Expand Down
Loading

0 comments on commit 4f51cbe

Please sign in to comment.