| |
@@ -38,9 +38,10 @@
|
| |
- GPLv2+
|
| |
- zlib
|
| |
# Extensible metadata block
|
| |
- # A dictionary of user-defined keys and values. May be null.
|
| |
- # Optional. Defaults to null.
|
| |
- xmd: ~
|
| |
+ # A dictionary of user-defined keys and values.
|
| |
+ # Optional. Defaults to an empty dictionary.
|
| |
+ xmd:
|
| |
+ some_key: some_data
|
| |
# Module dependencies, if any. Optional.
|
| |
# TODO: Provides, conflicts, obsoletes, recommends, etc.
|
| |
# TODO: Stream name globbing or regular expression support
|
| |
Before this PR, xmd would default to
None
which made coding against it messy such as having to check the type before checking if a key is set. This now defaults to a dictionary so that you can simply do the following to check if xmd has a key set: