Made metadata reference/versionValue required.
Tweaks to use of enum in Response