20#ifndef RC_JSON_SCHEMA_H
21#define RC_JSON_SCHEMA_H
60 std::vector<AFFECTED_ITEM>
items;
67 aJson[
"type"] = aViolation.
type;
69 aJson[
"severity"] = aViolation.
severity;
70 aJson[
"items"] = aViolation.
items;
74 aJson[
"excluded"] = aViolation.
excluded;
75 aJson[
"comment"] = aViolation.
comment;
81 aJson.at(
"type" ).get_to( aViolation.
type );
82 aJson.at(
"description" ).get_to( aViolation.
description );
83 aJson.at(
"severity" ).get_to( aViolation.
severity );
84 aJson.at(
"items" ).get_to( aViolation.
items );
85 aJson.at(
"excluded" ).get_to( aViolation.
excluded );
86 aJson.at(
"comment" ).get_to( aViolation.
comment );
122 unconnected_items, schematic_parity, coordinate_units,
123 included_severities, ignored_checks )
130 std::vector<VIOLATION> violations;
146 coordinate_units, included_severities, ignored_checks )
Contains the json serialization structs for DRC and ERC reports If you are trying to change the outpu...
void from_json(const nlohmann::json &aJson, VIOLATION &aViolation)
void to_json(nlohmann::json &aJson, const VIOLATION &aViolation)
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(DRC_REPORT, $schema, source, date, kicad_version, violations, unconnected_items, schematic_parity, coordinate_units, included_severities, ignored_checks) struct ERC_SHEET
std::vector< wxString > included_severities
std::vector< VIOLATION > unconnected_items
std::vector< IGNORED_CHECK > ignored_checks
std::vector< VIOLATION > violations
std::vector< VIOLATION > schematic_parity
std::vector< wxString > included_severities
std::vector< ERC_SHEET > sheets
std::vector< IGNORED_CHECK > ignored_checks
wxString coordinate_units
std::vector< AFFECTED_ITEM > items