Skip to content

Please do not reuse propertyType for "environmentVar " #248

@jkowalleck

Description

@jkowalleck

Please do not reuse propertyType for "environmentVar".
The annotations from propertyType do not match the case here.

better define a dedicated (abstract) key-value pair element type:

<xs:complexType name="KeyValuePair">
    <xs:simpleContent>
        <xs:extension base="xs:string">
            <xs:attribute name="name" use="required">
                <xs:annotation><xs:documentation>The name of the env var</xs:documentation></xs:annotation>  
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:minLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
        </xs:extension>
    </xs:simpleContent>
</xs:complexType>

(PS: this "KeyValuePair" is not identical to current implementation of "propertyType")

and use it here

<xs:element name="environmentVar" type="bom:KeyValuePair" />

Originally posted by @jkowalleck in #222 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions