From 8f23bce1196479933ad006bc4521ae844b17cede Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 23 Sep 2021 09:41:35 +0000 Subject: [PATCH] docs/Adding-A-New-Schema: Notes for future reference --- docs/Adding-A-New-Schema.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/Adding-A-New-Schema.md diff --git a/docs/Adding-A-New-Schema.md b/docs/Adding-A-New-Schema.md new file mode 100644 index 0000000..fcdcf1d --- /dev/null +++ b/docs/Adding-A-New-Schema.md @@ -0,0 +1,22 @@ +# Adding A New Schema + +## Introduction +As of September 2021 it was decided that all new Journal events will be +added to their own, new, schemas. This better facilitates defining any +values that should be elided, or augmentations added, without twisting +schema definitions into knots. + +In the future we will likely migrate all of the events currently +supported in the journal schema into their own schemas, and later still +deprecate the journal schema. + +### Code changes +The only code change required is to +[src/conf/Settings.py](../src/conf/Settings.py) in the +`GATEWAY_JSON_SCHEMAS` dictionary. This defines the schemas the Gateway +will accept, and the local schema file to check each against. + +### Deployment changes +As of 2021-09-23 all of the setup.py deployment code operates on file +globs or directories, so no changes are necessary in order to get new +schema files deployed.