openehr-its 0.0.2

openEHR ITS (Implementation Technology Specifications): canonical JSON + XML serialization, ITS-REST OpenAPI contract, ITS-BMM. Mirrors the specifications-ITS-{JSON,XML,REST,BMM} repos.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! **Native canonical-JSON codec** (ITS-JSON, both directions).
//!
//! The per-type work is EMITTED (`openehr-codegen -- emit-json`) as manual
//! `serde::Serialize`/`serde::Deserialize` impls that live in each spec crate's
//! own `json_serde` module — the impls have to live where the types are defined
//! (orphan rule), and being in-crate is also what lets them read a validated
//! class's `pub(crate)` fields and construct through its hand-written door.
//! Their shared runtime is `openehr_base::serde_support`; the named entry
//! points are [`crate::json`].
//!
//! What remains here is the part that cannot live in any single spec crate:
//! [`generated::structural`], the `_type`-keyed dispatch from a wire class name
//! to that class's `Deserialize` (and the matching declared-key table), which
//! spans every spec crate at once.

pub mod generated;