|
1 | 1 | <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
2 | 2 |
|
| 3 | + <xs:include schemaLocation="commonAttributes.xsd"/> |
3 | 4 | <xs:group name="dataOperationTags">
|
4 | 5 | <xs:choice>
|
5 | 6 | <xs:element type="createDataType" name="createData" minOccurs="0" maxOccurs="unbounded"/>
|
|
9 | 10 | </xs:choice>
|
10 | 11 | </xs:group>
|
11 | 12 |
|
12 |
| - <!-- Complex Types --> |
| 13 | + <!-- Data Attributes --> |
| 14 | + <xs:attribute type="xs:string" name="createDataKey"> |
| 15 | + <xs:annotation> |
| 16 | + <xs:documentation> |
| 17 | + Reference to the stepKey of a previously executed createData test action. |
| 18 | + </xs:documentation> |
| 19 | + </xs:annotation> |
| 20 | + </xs:attribute> |
| 21 | + <xs:attribute type="xs:string" name="entity"> |
| 22 | + <xs:annotation> |
| 23 | + <xs:documentation> |
| 24 | + Name of entity to be used in data operation. |
| 25 | + </xs:documentation> |
| 26 | + </xs:annotation> |
| 27 | + </xs:attribute> |
| 28 | + <xs:attribute type="xs:string" name="storeCode"> |
| 29 | + <xs:annotation> |
| 30 | + <xs:documentation> |
| 31 | + Store code that you wish to perform data operation against. |
| 32 | + </xs:documentation> |
| 33 | + </xs:annotation> |
| 34 | + </xs:attribute> |
13 | 35 |
|
| 36 | + <!-- Complex Types --> |
14 | 37 | <xs:complexType name="createDataType">
|
| 38 | + <xs:annotation> |
| 39 | + <xs:documentation>Create an entity (e.g. a category or product). In other words, make a POST request to the Magento API according to the data and metadata of the entity to be created.</xs:documentation> |
| 40 | + </xs:annotation> |
15 | 41 | <xs:choice minOccurs="0" maxOccurs="unbounded">
|
16 | 42 | <xs:element type="requiredEntityType" name="requiredEntity" minOccurs="0" maxOccurs="unbounded"/>
|
17 | 43 | </xs:choice>
|
18 |
| - <xs:attribute type="xs:string" name="entity" use="required"/> |
19 |
| - <xs:attribute type="xs:string" name="stepKey" use="required"/> |
20 |
| - <xs:attribute type="xs:string" name="before"/> |
21 |
| - <xs:attribute type="xs:string" name="after"/> |
22 |
| - <xs:attribute type="xs:string" name="storeCode"/> |
| 44 | + <xs:attribute ref="entity" use="required"/> |
| 45 | + <xs:attribute ref="stepKey" use="required"/> |
| 46 | + <xs:attribute ref="before"/> |
| 47 | + <xs:attribute ref="after"/> |
| 48 | + <xs:attribute ref="storeCode"/> |
23 | 49 | </xs:complexType>
|
24 | 50 | <xs:complexType name="updateDataType">
|
| 51 | + <xs:annotation> |
| 52 | + <xs:documentation>Updates a previously created entity (via createData).</xs:documentation> |
| 53 | + </xs:annotation> |
25 | 54 | <xs:choice minOccurs="0" maxOccurs="unbounded">
|
26 | 55 | <xs:element type="requiredEntityType" name="requiredEntity" minOccurs="0" maxOccurs="unbounded"/>
|
27 | 56 | </xs:choice>
|
28 |
| - <xs:attribute type="xs:string" name="entity" use="required"/> |
29 |
| - <xs:attribute type="xs:string" name="stepKey" use="required"/> |
30 |
| - <xs:attribute type="xs:string" name="createDataKey" use="required"/> |
31 |
| - <xs:attribute type="xs:string" name="before"/> |
32 |
| - <xs:attribute type="xs:string" name="after"/> |
33 |
| - <xs:attribute type="xs:string" name="storeCode"/> |
| 57 | + <xs:attribute ref="entity" use="required"/> |
| 58 | + <xs:attribute ref="stepKey" use="required"/> |
| 59 | + <xs:attribute ref="createDataKey" use="required"/> |
| 60 | + <xs:attribute ref="before"/> |
| 61 | + <xs:attribute ref="after"/> |
| 62 | + <xs:attribute ref="storeCode"/> |
34 | 63 | </xs:complexType>
|
35 | 64 | <xs:complexType name="deleteDataType">
|
| 65 | + <xs:annotation> |
| 66 | + <xs:documentation>Deletes a previously created entity (via createData).</xs:documentation> |
| 67 | + </xs:annotation> |
36 | 68 | <xs:simpleContent>
|
37 | 69 | <xs:extension base="xs:string">
|
38 |
| - <xs:attribute type="xs:string" name="createDataKey" use="required"/> |
39 |
| - <xs:attribute type="xs:string" name="stepKey" use="required"/> |
40 |
| - <xs:attribute type="xs:string" name="before"/> |
41 |
| - <xs:attribute type="xs:string" name="after"/> |
42 |
| - <xs:attribute type="xs:string" name="storeCode"/> |
| 70 | + <xs:attribute ref="createDataKey" use="required"/> |
| 71 | + <xs:attribute ref="stepKey" use="required"/> |
| 72 | + <xs:attribute ref="before"/> |
| 73 | + <xs:attribute ref="after"/> |
| 74 | + <xs:attribute ref="storeCode"/> |
43 | 75 | </xs:extension>
|
44 | 76 | </xs:simpleContent>
|
45 | 77 | </xs:complexType>
|
46 | 78 | <xs:complexType name="getDataType">
|
| 79 | + <xs:annotation> |
| 80 | + <xs:documentation>Retrieves an entity. In other words, makes a GET request to the Magento API according to the data and metadata of the entity type that is requested.</xs:documentation> |
| 81 | + </xs:annotation> |
47 | 82 | <xs:choice minOccurs="0" maxOccurs="unbounded">
|
48 | 83 | <xs:element type="requiredEntityType" name="requiredEntity" minOccurs="0" maxOccurs="unbounded"/>
|
49 | 84 | </xs:choice>
|
50 |
| - <xs:attribute type="xs:string" name="entity" use="required"/> |
51 |
| - <xs:attribute type="xs:string" name="stepKey" use="required"/> |
52 |
| - <xs:attribute type="xs:integer" name="index"/> |
53 |
| - <xs:attribute type="xs:string" name="before"/> |
54 |
| - <xs:attribute type="xs:string" name="after"/> |
55 |
| - <xs:attribute type="xs:string" name="storeCode"/> |
| 85 | + <xs:attribute ref="entity" use="required"/> |
| 86 | + <xs:attribute ref="stepKey" use="required"/> |
| 87 | + <xs:attribute type="xs:integer" name="index"> |
| 88 | + <xs:annotation> |
| 89 | + <xs:documentation> |
| 90 | + If getData is supposed to return an array of objects, grab only index instead. |
| 91 | + </xs:documentation> |
| 92 | + </xs:annotation> |
| 93 | + </xs:attribute> |
| 94 | + <xs:attribute ref="before"/> |
| 95 | + <xs:attribute ref="after"/> |
| 96 | + <xs:attribute ref="storeCode"/> |
56 | 97 | </xs:complexType>
|
57 | 98 | <xs:complexType name="requiredEntityType">
|
| 99 | + <xs:annotation> |
| 100 | + <xs:documentation>Previously created entities that this operation requires (via createData)</xs:documentation> |
| 101 | + </xs:annotation> |
58 | 102 | <xs:simpleContent>
|
59 | 103 | <xs:extension base="xs:string">
|
60 |
| - <xs:attribute type="xs:string" name="createDataKey" use="required"/> |
61 |
| - <xs:attribute type="xs:string" name="before"/> |
62 |
| - <xs:attribute type="xs:string" name="after"/> |
| 104 | + <xs:attribute ref="createDataKey" use="required"/> |
| 105 | + <xs:attribute ref="before"/> |
| 106 | + <xs:attribute ref="after"/> |
63 | 107 | </xs:extension>
|
64 | 108 | </xs:simpleContent>
|
65 | 109 | </xs:complexType>
|
|
0 commit comments