diggsweden / sdk-docs

Dokumentation för SDK-projeket.
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

SDK-API: Label on sender/receiver is missing #7

Open mcNisse opened 2 weeks ago

mcNisse commented 2 weeks ago

Contact Details (Optional)

johan.erlands@idainfront.se

What happened?

Try to compare a sender/reciver from XML, MessagePayloadType. The XML sender receiver has a label attribute. Where i think that sender/receiver name can be stored. This is missing in attributes in JSON model. Only senderId.extension is available and AttentionDataTypes.

Extract from schema.

    <xs:complexType name="SenderType">
        <xs:sequence>
            <xs:element name="senderID" type="tns:IIType" minOccurs="1"
                maxOccurs="1">
            </xs:element>
            <xs:element name="label" minOccurs="0" maxOccurs="1">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="256"></xs:maxLength>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="attention" type="tns:AttentionDataType"
                minOccurs="0" maxOccurs="1">
            </xs:element>
            <xs:any namespace="##other" processContents="lax"
                minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="RecipientType">
        <xs:sequence>
            <xs:element name="recipientID" type="tns:IIType"
                minOccurs="1" maxOccurs="1">
            </xs:element>
            <xs:element name="label" minOccurs="0" maxOccurs="1">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="256"></xs:maxLength>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="attention" type="tns:AttentionDataType"
                minOccurs="1" maxOccurs="1">
            </xs:element>
            <xs:any namespace="##other" processContents="lax"
                minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>

Steps To Reproduce

generate code compare the possible attributes to on sender/receiver between XML model object and JSON.

What did you expect?

I expected to be able to compare label on sender/receiver with something from model object.

Version (Optional)

No response

Screenshots (Optional)

No response

Relevant log output (Optional)

No response

marcodeluca1 commented 1 week ago

The API elements should be mapped as follows: subOrganization.root = subOrganization.organizationId.root subOrganization.extension = subOrganization.organizationId.extension subOrganization.label = subOrganization.label