Skip to content

Commit 8d1e1bb

Browse files
Merge remote-tracking branch 'origin/claude/native-document-validator' into claude/native-registration-checks
# Conflicts: # packages/rs-dpp/src/data_contract/document_type/schema/validation_schema/tests.rs
2 parents 5e66a0f + 7291f96 commit 8d1e1bb

6 files changed

Lines changed: 2545 additions & 2467 deletions

File tree

‎packages/rs-dpp/src/data_contract/document_type/schema/validation_schema/mod.rs‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,10 @@ impl JsonType {
131131

132132
/// A format the JSON Schema validator knows under draft 2020-12, the pinned fork's. It
133133
/// compiles no schema naming another (it does not ignore unknown formats), so a `$ref`
134-
/// reaching one refuses every value.
134+
/// reaching one refuses every value. Each generation of the builder lists the formats it
135+
/// admits by name, so a variant added here is admitted only by the generation that lists it.
135136
#[derive(
136-
Debug,
137-
Clone,
138-
Copy,
139-
PartialEq,
140-
Eq,
141-
PartialOrd,
142-
Ord,
143-
strum::EnumIter,
144-
strum::EnumString,
145-
strum::IntoStaticStr,
137+
Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, strum::EnumIter, strum::IntoStaticStr,
146138
)]
147139
pub enum ValidatorFormat {
148140
#[strum(serialize = "date")]

0 commit comments

Comments
 (0)