Wrap schema in 'properties' property.
Merge pull request #1034 from bendiy/schema-properties

Wrap schema in 'properties' property.