Skip to content

categoryType/@section is use="required" but never included in FIX data (schema bug) #293

Description

@noelmcloughlin

The repositorytypes.xsd (v1.1-rc2) declares the section attribute on categoryType as use="required".

<xs:attribute name="section" type="fixr:Name_t" use="required"/>

However the XML data published by the community consistently omit this attribute:

File Repository Categories missing section
OrchestraFIXLatest.xml fix-orchestra Common, Fields, ImplFields
mit_2016.xml fix-orchestra Common, Fields, ImplFields
OrchestraFIXLatest.xml orchestrations Common, Fields, ImplFields
OrchestraExamples-v11-RC1.xml orchestrations Common, Fields, ImplFields
OrchestraFIX44.xml orchestrations Common

This XSD constraint is stricter than the data it is meant to describe - the over-constraint should be considered schema bug.

Example
https://raw.githubusercontent.com/FIXTradingCommunity/fix-orchestra/refs/heads/master/repository-util/src/test/resources/OrchestraFIXLatest.xml

      <fixr:category FIXMLFileName="components"
                     componentType="Message"
                     includeFile="fields"
                     name="Common"/>

XSD validation failure:

cvc-complex-type.4: Attribute 'section' must appear on element 'fixr:category'.

Suggested fix

<!-- before -->
<xs:attribute name="section" type="fixr:Name_t" use="required"/>

<!-- after -->
<xs:attribute name="section" type="fixr:Name_t"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions