deb-murano/releasenotes/notes/template-contract-b71840cbc35eb478.yaml
Kirill Zaitsev e9fe5b278c Cleanup, clarify newton release-notes
This commit clarifies, cleans and improves releasenotes for murano

Co-Authored-By: Maria Zlatkova <mzlatkova@mirantis.com>
Change-Id: I6591a62640f192be749c3c58a92dc00ef56dd736
2016-09-14 01:08:51 +03:00

12 lines
657 B
YAML

---
features:
- Implemented a new contract function ``template()``. ``template()`` works
similar to the ``class()`` in regards to the data validation but does not
instantiate objects. Instead, the data is left in the object model
in dictionary format so that it could be instantiated later with the ``new()``
function. Additionally, the function allows excluding specified properties from
validation and from the resulting template so that they could be provided later.
Objects that are assigned to the property or argument with ``template()``
contract will be automatically converted to their object model
representation.