|
1 | | -$schema: http://json-schema.org/draft-07/schema# |
| 1 | +$schema: http://json-schema.org/draft-04/schema# |
2 | 2 | title: EXPRESS Schema Changes |
3 | 3 | description: Records modifications to EXPRESS schema structure across versions |
4 | 4 | type: object |
@@ -33,23 +33,22 @@ definitions: |
33 | 33 | Provides comprehensive overview of what changed and why. |
34 | 34 | additions: |
35 | 35 | type: array |
36 | | - description: Array of added elements |
| 36 | + description: Array of addition changes representing added elements |
37 | 37 | items: |
38 | | - $ref: '#/definitions/item_change' |
| 38 | + $ref: '#/definitions/addition_change' |
39 | 39 | modifications: |
40 | 40 | type: array |
41 | | - description: Array of modified elements |
| 41 | + description: Array of modification changes representing modifications |
42 | 42 | items: |
43 | | - $ref: '#/definitions/item_change' |
| 43 | + $ref: '#/definitions/modification_change' |
44 | 44 | deletions: |
45 | 45 | type: array |
46 | | - description: Array of deleted elements |
| 46 | + description: Array of deletion changes representing removed elements |
47 | 47 | items: |
48 | | - $ref: '#/definitions/item_change' |
| 48 | + $ref: '#/definitions/deletion_change' |
49 | 49 | item_change: |
50 | 50 | type: object |
51 | 51 | description: Represents a specific schema element change |
52 | | - additionalProperties: false |
53 | 52 | required: |
54 | 53 | - type |
55 | 54 | - name |
@@ -84,3 +83,44 @@ definitions: |
84 | 83 | or used. Not needed when in deletions. |
85 | 84 | items: |
86 | 85 | type: string |
| 86 | + modification_change: |
| 87 | + description: Represents a modification to the schema |
| 88 | + $ref: '#/definitions/item_change' |
| 89 | + addition_change: |
| 90 | + description: Represents an addition to the schema |
| 91 | + allOf: |
| 92 | + - $ref: '#/definitions/item_change' |
| 93 | + - properties: |
| 94 | + moved_from: |
| 95 | + type: object |
| 96 | + description: >- |
| 97 | + If the addition was due to a move from another schema, provides |
| 98 | + the resource and module where it was moved from. |
| 99 | + required: |
| 100 | + - schema |
| 101 | + properties: |
| 102 | + schema: |
| 103 | + type: string |
| 104 | + description: Name of the schema where the item was moved from |
| 105 | + version: |
| 106 | + type: integer |
| 107 | + description: Version number in the source schema |
| 108 | + deletion_change: |
| 109 | + description: Represents a deletion from the schema |
| 110 | + allOf: |
| 111 | + - $ref: '#/definitions/item_change' |
| 112 | + - properties: |
| 113 | + moved_to: |
| 114 | + type: object |
| 115 | + description: >- |
| 116 | + If the deletion was due to a move to another schema, provides |
| 117 | + the resource and module where it was moved to. |
| 118 | + required: |
| 119 | + - schema |
| 120 | + properties: |
| 121 | + schema: |
| 122 | + type: string |
| 123 | + description: Name of the schema where the item was moved to |
| 124 | + version: |
| 125 | + type: integer |
| 126 | + description: Version number in the target schema |
0 commit comments