Revision 9b4c0456
Added by koszko over 1 year ago
| src/hydrilla/builder/build.py | ||
|---|---|---|
| 253 | 253 |
Return a minimal item reference suitable for using in source |
| 254 | 254 |
description. |
| 255 | 255 |
""" |
| 256 |
copy_props = ['type', 'identifier', 'long_name', 'uuid', 'description'] |
|
| 257 |
if 'comment' in item_def: |
|
| 258 |
copy_props.append('comment')
|
|
| 256 |
copy_props = ['type', 'identifier', 'long_name', 'description'] |
|
| 257 |
for prop in ('comment', 'uuid'):
|
|
| 258 |
if prop in item_def: |
|
| 259 |
copy_props.append(prop) |
|
| 259 | 260 |
|
| 260 | 261 |
if item_def['type'] == 'resource': |
| 261 | 262 |
item_list = self.resource_list |
| src/hydrilla/schemas | ||
|---|---|---|
| 1 |
Subproject commit 1d1c93d5a9011ecdf58a4952afcb5a1faff30e76 |
|
| 1 |
Subproject commit 5ef63e81ddd7299bfb738cae643bc48560b68a17 |
|
| src/test/source-package-example | ||
|---|---|---|
| 1 |
Subproject commit 48606f288c89aaadb28a021ab71945e1e87fd14e |
|
| 1 |
Subproject commit 92a4d31c659b2336e5e188877d1ce6bfad2fa310 |
|
| src/test/test_hydrilla_builder.py | ||
|---|---|---|
| 273 | 273 |
|
| 274 | 274 |
settings.expected_mapping['payloads'] = {}
|
| 275 | 275 |
|
| 276 |
# Don't use UUIDs (they are optional) |
|
| 277 |
for definition in obj['definitions']: |
|
| 278 |
del definition['uuid'] |
|
| 279 |
|
|
| 280 |
for description in settings.expected(): |
|
| 281 |
if 'uuid' in description: |
|
| 282 |
del description['uuid'] |
|
| 283 |
|
|
| 276 | 284 |
# Add some unrecognized properties that should be stripped |
| 277 | 285 |
to_process = [obj] |
| 278 | 286 |
while to_process: |
Also available in: Unified diff
make "uuid" an optional property