Jump to content

GDTF Forum

Din spec not clear which attributes are optional


michaelhugi
 Share

Recommended Posts

Hello

I'm writing an open-source GDTF-Parser for Rust. For me it's not 100% clear which attributes are optional and which are required. On some attributes in the description is written optional so I suggested if there is no optional in the comment field, it's required.

During testing I had a crash because on Page 35 ChannelFunction.ModeMaster is not defined as optional but in some GDTF-Files from GDTF-Share there is nothing there...

Did I miss something in the SPEC? Do I have to expect any attribute to be not present? This would be bad because there is no 'null' concept in Rust but only Optionals that have to be declared and then unwrapped every time they are used...

I would suggest for the next Version of the specs to add a column to every attribute if it's optional or not.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.