archim / access-contract
JSON Schemas of the messages of ArchIM's Access module, for contract tests of the module and its consumers
Requires
- php: ^8.5
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 19:38:09 UTC
README
The contract of the messages of ArchIM's Access module
(archim/access): a JSON Schema (2020-12) for every message it publishes or accepts from other deployments,
each with its title, description and examples. It contains no code of the module and has no dependencies.
What it provides
schema/public-event/: one schema per public event, named after it (public.access.….json), and the definitions they share.schema/distributed/: the commands Access accepts over the Distributed Bus, named after their routing key (access.replace_permission_catalogue.json, the catalogue of permissions a module's app sends at every deploy).ArchIM\Contract\Access\AccessContract: the directories as constants, so that tests find the schemas wherever the package is installed.
How it is used
Only in tests, so it is required in require-dev: by Access itself, to check what it sends and accepts, and by every
module, to check what it reads from Access and the catalogue it sends. A schema's relative $ref resolves against its
$id (https://archim.bydomain/schema/access/…), which a validator maps to the schema's own directory.
A schema changes only compatibly (a new optional field); a breaking change is a message with a new name.
Documentation
- Identity and access in the target model: what each message means.
- Public events and the decision on contract packages.
License
Apache License 2.0: see the LICENSE file.