Retire the mutable design schema
Make Rust records and fixed codec tests the implementation-shape owner, remove the Mermaid category registry, and state the ownership boundary in the authoritative specification.
This commit is contained in:
parent
a0055f67f1
commit
03bfe92ca0
1 changed files with 17 additions and 1679 deletions
|
|
@ -31,18 +31,14 @@ pub trait SchemaType {
|
|||
}
|
||||
|
||||
macro_rules! schema_types {
|
||||
($($name:literal => $record:ty),+; $($declared:literal),* $(,)?) => {
|
||||
($($name:literal => $record:ty),+ $(,)?) => {
|
||||
$(
|
||||
impl SchemaType for $record {
|
||||
const NAME: &'static str = $name;
|
||||
}
|
||||
)+
|
||||
|
||||
pub const IMPLEMENTED_SERIALIZED_SCHEMA_TYPE_NAMES: &[&str] = &[$($name),+];
|
||||
pub const DECLARED_SERIALIZED_SCHEMA_TYPE_NAMES: &[&str] = &[
|
||||
$($name),+,
|
||||
$($declared),*
|
||||
];
|
||||
pub const SERIALIZED_RECORD_TYPE_NAMES: &[&str] = &[$($name),+];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -149,13 +145,5 @@ schema_types!(
|
|||
"ResolvedNetworkReadinessV1" => ResolvedNetworkReadinessV1,
|
||||
"DomainStore" => DomainStore,
|
||||
"StorageCatalog" => StorageCatalog,
|
||||
"PrepareStageState" => PrepareStageState;
|
||||
"StateResetIntentV1",
|
||||
"StateResetScopeV1",
|
||||
"PrepareStageState" => PrepareStageState,
|
||||
);
|
||||
|
||||
pub const DECLARED_RUNTIME_SCHEMA_TYPE_NAMES: &[&str] = &[
|
||||
"ResolvedDomainConfiguration",
|
||||
"SandboxLayoutV1",
|
||||
"ConfinedPathPlan",
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue