dpp/data_contract/errors/
json_schema_error.rs1use crate::ProtocolError;
2use bincode::{Decode, DecodeUntrusted, Encode};
3use platform_serialization_derive::{
4 PlatformDeserializeTrusted, PlatformDeserializeUntrusted, PlatformSerialize,
5};
6use thiserror::Error;
7
8#[derive(
10 Error,
11 Debug,
12 PartialEq,
13 Eq,
14 PlatformSerialize,
15 PlatformDeserializeTrusted,
16 PlatformDeserializeUntrusted,
17 Encode,
18 Decode,
19 Clone,
20 DecodeUntrusted,
21)]
22pub enum JsonSchemaError {
23 #[error("can't create json schema: {0}")]
24 CreateSchemaError(String),
25
26 #[error("schema compatibility validation failed: {0}")]
27 SchemaCompatibilityValidationError(String),
28}