Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly redundant "description" attrubute in the "semanticAttributes" attributeGroup #143

Open
ujos opened this issue Feb 16, 2022 · 5 comments
Labels

Comments

@ujos
Copy link

ujos commented Feb 16, 2022

I have a problem using the Visual Studio for CME iLink3 SBE schema editing.

After I've added semanticAttributes to the simpleDataType, memberDataType and compositeDataType elements, the VS started to complain about the duplicated description attribute. In fact simpleDataType, memberDataType and compositeDataType have the description attribute and semanticAttributes element has it as well.

From my point of view the description tag is redundant for semanticAttributes, but I'm not the XML expert. Probably it is just a bug in the Visual Studio.

Attached in the attachment.zip are:

  • sbe-2.0rc3.xsd - Slightly modified SBE Schema XSD file
  • sbe-schema.xml - The XML file to test the XSD file
  • Prerequisites (xml.xsd, datatypes.dtd and XMLSchema.dtd) - VS has downloading disabled by default
@donmendelson
Copy link
Member

Questions about CME's message schema should be addressed to their support group. For one, they can tell you which version of the SBE standard it conforms to.

@ujos
Copy link
Author

ujos commented Feb 21, 2022

Well... the question is not about CME SBE specification. I mentioned CME SBE to explain how did I find the description attribute in the semanticAttributes.

Don't you think that the description attribute is redundant in semanticAttributes ?

@donmendelson
Copy link
Member

@ujos semanticAttributes is an attribute group containing description and semanticType attributes, so I assume that you want to know the distinction between those two. description is free-form text for any humanly readable explanation. On the other hand, semanticType is a little more specific. It was originally conceived to map SBE encoding types to the 20-some traditional FIX datatypes, such as String, UTCtimestamp, Qty, etc.

@ujos
Copy link
Author

ujos commented Feb 21, 2022

I mean why did you add the description attribute in the semanticAttributes group? Or why didn't you add the description attribute to some other group like offsetAttributes?

The problem is if you try adding the semanticAttributes group to tags like simpleDataType, that causes the problems because the description tag inside the semanticAttributes conflicts with description in the simpleDataType.

@donmendelson
Copy link
Member

I understand that you believe that there "description" attribute is defined twice for the same type, causing a conflict. However, I don't see that for "simpleDataType". It has "description" as an attribute, but is does not include "semanticAttributes" attribute group. So "description" is only defined once for that type.

Conversely, "semanticAttributes" is included in "fieldType" and "blockType", which do not independently define "description", so again I do not see a conflict.

Which is not to say that the schema could not be improved. PRs will be considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants