matrix-doc/api
Richard van der Hoff 014b3f5f96 Make the schema files JSON
This undoes a change made in PR #217.

Although JSON is a disasterous syntax for human-maintained files, the fact
remains that JSON-schema is a thing, whilst YAML-schema (although accepted by
swagger) is not. Using YAML negates most of the advantages of using the
JSON-schema format (mostly, the fact that we can feed those files into a number
of tools), and we weren't really using the increased power of YAML.

Possibly, we should consider generating the JSON from YAML inputs, but either
way, the event schemas need to refer to the JSON files, and for now it's easier
just to stick to JSON.
2016-05-04 18:25:24 +01:00
..
application-service Move application service swagger out of c-s dir 2015-12-04 17:34:48 +00:00
client-server Make the schema files JSON 2016-05-04 18:25:24 +01:00
files fix for https://github.com/matrix-org/matrix-doc/issues/270 2016-02-16 11:01:04 +00:00
identity Fix presumably c+p fail 2016-04-06 21:00:12 +01:00
push-gateway Fix level of `counts` and `devices` 2016-04-06 20:21:08 +01:00
README Remove redundant scripts under api/ 2016-05-03 12:05:52 +01:00
check_examples.py Make all the schema files yaml 2015-12-07 13:56:36 +00:00
package.json Reinstate validator.js 2016-05-04 00:19:46 +01:00
validator.js Reinstate validator.js 2016-05-04 00:19:46 +01:00

README

This directory contains swagger-compatible representations of our APIs. See
scripts/README.md for details on how to make use of them.