Commit 1bfda78
committed
Fix 6 failing examples: remove null stub properties and fix material encoding
Three classes of bug were present:
1. stContactDescription / stFoldDescription set to null (contact.json, fold.json,
contacts_complex_scenario.json): the schema defines these stub properties as
type:object (ContactAbstractDescription / FoldAbstractDescription), so null
fails validation. The properties are optional in GeoSciML Basic — removed
them entirely.
2. material objects encoded as flat { "properties": {...}, "lithology": "..." }
(geologic_unit.json, geologic_units_isle_of_wight.json,
geologic_units_british_columbia.json): CompoundMaterial extends EarthMaterial
which extends the JSON-FG Feature schema, so each material must be a full
Feature object with type/featureType/id/geometry/properties. Converted to
{ "type": "Feature", "featureType": "RockMaterial", "id": "...",
"geometry": null, "properties": { "lithology": "..." } }.
3. role / proportion set to null in geologic_units_british_columbia.json:
CompositionPartRoleTerm is type:string and proportion refs QuantityRange
(type:object); neither accepts null. Both fields are optional — removed
the null entries.1 parent 29714e0 commit 1bfda78
6 files changed
Lines changed: 253 additions & 123 deletions
File tree
- examples/json/4.1
- basic
- featurecollections/basic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
67 | 66 | | |
68 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
Lines changed: 7 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
82 | | - | |
| 80 | + | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
113 | | - | |
| 110 | + | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
| |||
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
145 | | - | |
146 | | - | |
| 142 | + | |
147 | 143 | | |
148 | 144 | | |
149 | 145 | | |
| |||
175 | 171 | | |
176 | 172 | | |
177 | 173 | | |
178 | | - | |
179 | | - | |
| 174 | + | |
180 | 175 | | |
181 | 176 | | |
182 | 177 | | |
| |||
220 | 215 | | |
221 | 216 | | |
222 | 217 | | |
223 | | - | |
224 | | - | |
| 218 | + | |
225 | 219 | | |
226 | 220 | | |
227 | 221 | | |
| |||
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
268 | | - | |
269 | | - | |
| 262 | + | |
270 | 263 | | |
271 | 264 | | |
272 | 265 | | |
| |||
0 commit comments