Commit graph

7 commits

Author SHA1 Message Date
Kegan Dougal c972dad8b3 Flesh out receipts module. Add receipts swagger
Add templating support for v2 apis.
2015-10-01 15:41:54 +01:00
Kegan Dougal 365a9076b9 Add nested dict template support; Add x-pattern
For cases where event schema specify `patternProperties` it would be nice
to give that pattern a "human-readable" form rather than a raw regex. This
is now supported by specifying `x-pattern` in the value part of the specified
pattern e.g. `patternProperties:{ "^.*":{ x-pattern: "$THING", ... } }`

Templating had limited record type descriptions limited to value primitives
e.g. `{string: integer}`. It now supports inspecting the values recursively
if the value is `object`.

Updated `m.receipt` to take both these points into account to make it read
better. Tweak receipt module text.
2015-10-01 12:11:26 +01:00
Mark Haines 654ed9b99e Remove keys from the m.room.* schema files so that they may be used in the node swagger validator 2015-09-17 16:00:06 +01:00
Erik Johnston 500b4eb32d Typo 2015-09-08 16:54:14 +01:00
Erik Johnston 53756cfd73 More commas 2015-09-08 16:52:43 +01:00
Erik Johnston 5157c2f52e More escapes 2015-09-08 16:51:08 +01:00
Erik Johnston e58f816ad3 Add m.receipt schema 2015-09-08 16:49:14 +01:00