add YAML and XML example for Required and Optional field constraints in a Collection constraint
Merge pull request #2841 from xabbuh/collections-constraint-examples

add YAML and XML example for Required and Optional field constraints in ...