OAGi / Score

Score
MIT License
9 stars 6 forks source link

Annotation is appearing twice in expressed xsd bies #1630

Closed smorgan19 closed 3 months ago

smorgan19 commented 4 months ago

Annotation is appearing twice and is generating an invalid schema. This happens on regardless of the BIE type or method of creations(new creation vs uplift). To replicate this issue, the express conditions are BIE Definition Selected, XSD as the Expression, Put all Schemas in One File for Schema File options. image

hakjuoh commented 4 months ago

@joshklm @tekratz @kbserm This issue follows the issue #1617. One way to solve this issue is to move the documentation tag for the context definition into the first annotation tag.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.openapplications.org/oagis/10" targetNamespace="http://www.openapplications.org/oagis/10" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="Process">
        <xsd:annotation>
            <xsd:documentation>Below is the 'appinfo' element containing BIE version information in beta format.</xsd:documentation>
            <xsd:appinfo>Version ID = abc</xsd:appinfo>
            <xsd:documentation source="http://www.openapplications.org/oagis/10">Context Definition Info</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType />
    </xsd:element>
</xsd:schema>