Skip to content

Commit

Permalink
Add a few more ref type recognition in xml parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Nov 17, 2023
1 parent 523c19f commit 5080c8c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ def NormalizeDataType(t: str) -> str:

# Handle oddities in current data model XML schema for nicer diffs
_REF_NAME_MAPPING = {
"<<ref_DataTypeString>>": "char_string",
"<<ref_DataTypeEndpointNumber>>": "endpoint_no",
"<<ref_DataTypeEpochUs>>": "epoch_us",
"<<ref_DataTypeNodeId>>": "node_id",
"<<ref_DataTypeOctstr>>": "octet_string",
"<<ref_DataTypeString>>": "char_string",
"<<ref_DataTypeVendorId>>": "vendor_id",
"<<ref_DataTypeEndpointNumber>>": "endpoint_no",
"<<ref_FabricIdx>>": "fabric_idx",
}


Expand Down

0 comments on commit 5080c8c

Please # to comment.