Merge branch 'master' of https://github.com/lukebpotato/osmosis
Improve the detection of which fields are optional or required