@@ -40,8 +40,6 @@ const string_fragment open::SCHEMA_ID
4040 = " https://lnav.org/event-file-open-v1.schema.json" _frag;
4141
4242const typed_json_path_container<open> open::handlers = typed_json_path_container<open>{
43- yajlpp::property_handler (" $schema" ).for_field (&open::o_schema)
44- .with_const (SCHEMA_ID ),
4543 yajlpp::property_handler (" filename" )
4644 .with_description (" The path of the file that was opened" )
4745 .for_field (&open::o_filename),
@@ -53,8 +51,6 @@ const string_fragment format_detected::SCHEMA_ID
5351 = " https://lnav.org/event-file-format-detected-v1.schema.json" _frag;
5452
5553const typed_json_path_container<format_detected> format_detected::handlers = typed_json_path_container<format_detected>{
56- yajlpp::property_handler (" $schema" ).for_field (&format_detected::fd_schema)
57- .with_const (SCHEMA_ID ),
5854 yajlpp::property_handler (" filename" )
5955 .with_description (" The path of the file for which a matching format was found" )
6056 .for_field (&format_detected::fd_filename),
@@ -79,8 +75,6 @@ static const json_path_container msg_values_handlers = {
7975};
8076
8177const typed_json_path_container<msg_detected> msg_detected::handlers = typed_json_path_container<msg_detected>{
82- yajlpp::property_handler (" $schema" ).for_field (&msg_detected::md_schema)
83- .with_const (SCHEMA_ID ),
8478 yajlpp::property_handler (" watch-name" )
8579 .with_description (" The name of the watch expression that matched this log message" )
8680 .for_field (&msg_detected::md_watch_name),
@@ -110,12 +104,10 @@ namespace session {
110104const string_fragment loaded::SCHEMA_ID
111105 = " https://lnav.org/event-session-loaded-v1.schema.json" _frag;
112106
113- const typed_json_path_container<loaded> loaded::handlers = typed_json_path_container<loaded>{
114- yajlpp::property_handler (" $schema" ).for_field (&loaded::l_schema)
115- .with_example (SCHEMA_ID ),
116- }
117- .with_schema_id2(SCHEMA_ID )
118- .with_description2(" Event fired when a session is loaded." );
107+ const typed_json_path_container<loaded> loaded::handlers
108+ = typed_json_path_container<loaded>{}
109+ .with_schema_id2(SCHEMA_ID )
110+ .with_description2(" Event fired when a session is loaded." );
119111
120112} // namespace session
121113
0 commit comments