Skip to content

feat: update to lutaml-model 0.8.0#6

Merged
ronaldtse merged 6 commits intomainfrom
rt-lutaml-080
Apr 1, 2026
Merged

feat: update to lutaml-model 0.8.0#6
ronaldtse merged 6 commits intomainfrom
rt-lutaml-080

Conversation

@ronaldtse
Copy link
Copy Markdown
Contributor

@ronaldtse ronaldtse commented Mar 22, 2026

There are 3 bugs to address:

  1. Date time format. lutaml-model uses a variable precision ISO 8601 date format that we don't properly handle.
        ┌─ NORMATIVE DIFFERENCES (62) ─┐
      
        🔍 DIFFERENCE #1/62 [NORMATIVE]
        ──────────────────────────────────────────────────────────────────────
        Dimension: text_content
        Location:  
        Reason:  Text: "2016-04-05T13:43:01.000+02:00" vs "2016-04-05T13:43:01+02:00"
      
        ⊖ Expected (File 1):
           "2016-04-05T13:43:01.000+02:00"
      
        ⊕ Actual (File 2):
           "2016-04-05T13:43:01+02:00"
      
        ✨ Changes:
           Content differs: "2016-04-05T13:43:01.000+02:00" → "2016-04-05T13:43:01+02:00"

Or this:

        2069|    - | ░░░░░░░░<SPEC-OBJECT░IDENTIFIER="rmf-e79cadd7-219e-4cca-acf6-3d81a049fe5e"░LAST-CHANGE="2022-06-22T11:22:38.085+02:00">
            |2069+ | ░░░░░░░░<SPEC-OBJECT░IDENTIFIER="rmf-e79cadd7-219e-4cca-acf6-3d81a049fe5e"░LAST-CHANGE="2022-06-22T11:22:38+02:00">
  1. We do not properly handle the XHTML content in XhtmlContent class when there is embedding:
         637| 637  |               <THE-VALUE>
         638|    - | ░░░░░░░░░░░░░░░░<xhtml:div><xhtml:span░style="font-size:░11pt;line-height:░1.5;">The░module░will░embed░SARA░R422S░module░which░support░release░14</xhtml:span></xhtml:div>
            | 638+ | ░░░░░░░░░░░░░░░░<xhtml:div/>
        2971|    - | ░░░░░░░░░░░░░░░░<xhtml:div>A░"<xhtml:span░style="font-size:░10pt;line-height:░1.5;">ModuleAlarmMask</xhtml:span>"░will░be░supported░for░the░customer░to░select░what░alarms░of░the░module░shall░trigger░the░real-time░alarm,░i.e.░the░real-time░alarm░is░activated░if░the░corresponding░bit░of░the░alarm░mask░is░set░to░1.░The░alarm░mask░functions░shall░not░disable░the░real-time░alarms░of░the░host░device.</xhtml:div>
            |2971+ | ░░░░░░░░░░░░░░░░<xhtml:div>A░"</xhtml:div>
  1. We need to configure Canon to not show the non-normative output.

e.g. this is identical:

          84|    - | ░░░░░░░░░░░░<ATTRIBUTE-DEFINITION-ENUMERATION
            |  84+ | ░░░░░░░░░░░░<ATTRIBUTE-DEFINITION-ENUMERATION░IDENTIFIER="_0VDX0Mk3Eee5A_N9aQFa1w"░IS-EDITABLE="true"░LAST-CHANGE="2017-11-14T15:44:26.00099999+02:00"░LONG-NAME="IE░Object░Type"░MULTI-VALUED="false">
          85|    - | ░░░░░░░░░░░░░░░░IDENTIFIER="_0VDX0Mk3Eee5A_N9aQFa1w"
          86|    - | ░░░░░░░░░░░░░░░░LAST-CHANGE="2017-11-14T15:44:26.000+02:00"
          87|    - | ░░░░░░░░░░░░░░░░LONG-NAME="IE░Object░Type"
          88|    - | ░░░░░░░░░░░░░░░░IS-EDITABLE="true"
          89|    - | ░░░░░░░░░░░░░░░░MULTI-VALUED="false">

Additional to probably not fix for now

This is a weird bug -- it defines 2 different namespace prefixes for http://www.w3.org/1999/xhtml, so we don't support this yet, i.e.:

  • xmlns:xhtml="http://www.w3.org/1999/xhtml"
  • xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml"
        ┌─ NORMATIVE DIFFERENCES (1) ─┐
      
        🔍 DIFFERENCE #1/1 [NORMATIVE]
        ──────────────────────────────────────────────────────────────────────
        Dimension: namespace_declarations
        Location:  Location: /REQ-IF[1]
        Reason:  4 vs 4
      
        ⊖ Expected (File 1):
           <REQ-IF> xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml"
      
        ⊕ Actual (File 2):
           <REQ-IF> xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml"
      
        ✨ Changes:
           Removed: -xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml"

            |   1+ | <?xml░version="1.0"░encoding="utf-8"?>
           2|    - | <REQ-IF░xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd"
            |   2+ | <REQ-IF░xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd"░xmlns:xhtml="http://www.w3.org/1999/xhtml">
           3|    - | ░░░░xmlns:xhtml="http://www.w3.org/1999/xhtml"░xmlns:reqif-xhtml="http://www.w3.org/1999/xhtml">

...

         129|    - | ░░░░░░░░░░░░░░░░░░<THE-VALUE><reqif-xhtml:div>4e0b143928275e1b.00000440</reqif-xhtml:div></THE-VALUE>
            | 129+ | ░░░░░░░░░░░░░░░░░░<THE-VALUE/>

@ronaldtse ronaldtse merged commit ae64d32 into main Apr 1, 2026
14 checks passed
@ronaldtse ronaldtse deleted the rt-lutaml-080 branch April 1, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant