Commit graph

3 commits

Author SHA1 Message Date
Marielle Volz d6cac31082 Implement new "maps" property in Root
Add "maps" as an allowed root value to template data JSON.

Maps allow applications to map equivalencies between their
application-specific parameters and valid template parameters.

Each Map has arbitrary keys (from the consuming application) that
are mapped to one or more template parameters.

* Added root.maps to TemplateDataBlob
  * Validates that values are strings or arrays
  * Validates that values are valid params
* Added templatedata-invalid-param to i18n/en.json
  * Richer error message for when invalid value is a param
* Fixed existing tests to work with new "maps" property
* Added two new tests for maps
  * Test for invalid value (!string or !array)
  * Test for invalid parameter
* Added specification for root.maps property and Map object

Change-Id: I3bf5e002ad6c1632e02c4c2e393b244c51f77177
2014-11-08 20:29:51 +00:00
Timo Tijhof 9dd5cb4087 spec: Fix Markdown syntax to be compatible with gitblit
It requires void tags to be XML-compatible.

Change-Id: Ic785424b6586b3757e1b7883308a54e7275499e4
2014-09-24 14:11:50 -07:00
Timo Tijhof c5dfe5b2a9 spec: Rewrite, reshape, reform! (Markdown)
Change-Id: I4eae6e6719242524d9d9f770e2701f302dd40cd8
2014-09-24 14:06:42 -07:00