File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub(crate) struct Context {
14
14
pub ( crate ) timestamp : time:: OffsetDateTime ,
15
15
#[ serde( rename = "schemaUri" , skip_serializing_if = "Option::is_none" ) ]
16
16
pub ( crate ) schema_uri : Option < Uri > ,
17
- #[ serde( rename = "chain_id " , skip_serializing_if = "Option::is_none" ) ]
17
+ #[ serde( rename = "chainId " , skip_serializing_if = "Option::is_none" ) ]
18
18
pub ( crate ) chain_id : Option < String > ,
19
19
#[ serde( skip_serializing_if = "Option::is_none" ) ]
20
20
pub ( crate ) links : Option < serde_json:: Value > ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ fn events_schemas() -> &'static EventsSchemas {
78
78
}
79
79
80
80
#[ rstest]
81
- fn can_serde_example ( #[ files( "../cdevents-specs/spec-*/examples/*.json" ) ] path : PathBuf ) {
81
+ fn can_serde_example ( #[ files( "../cdevents-specs/spec-*/examples/*.json" ) ] # [ files ( "../cdevents-specs/spec-*/conformance/*.json" ) ] path : PathBuf ) {
82
82
let example_txt = fs:: read_to_string ( path) . expect ( "to read file as string" ) ;
83
83
// HACK uri are stored ad http::Uri, they are "normalized" when serialized, so prenormalization to avoid failure like
84
84
// json atoms at path ".subject.content.repository.source" are not equal:
@@ -102,7 +102,7 @@ fn can_serde_example(#[files("../cdevents-specs/spec-*/examples/*.json")] path:
102
102
}
103
103
104
104
#[ rstest]
105
- fn validate_example_against_schema ( #[ files( "../cdevents-specs/spec-*/examples/*.json" ) ] path : PathBuf ) {
105
+ fn validate_example_against_schema ( #[ files( "../cdevents-specs/spec-*/examples/*.json" ) ] # [ files ( "../cdevents-specs/spec-*/conformance/*.json" ) ] path : PathBuf ) {
106
106
let events_schemas = events_schemas ( ) ;
107
107
let example_txt = fs:: read_to_string ( path) . expect ( "to read file as string" ) ;
108
108
let example_json: serde_json:: Value =
You can’t perform that action at this time.
0 commit comments