20#ifndef RC_JSON_SCHEMA_H
21#define RC_JSON_SCHEMA_H
23#include <nlohmann/json.hpp>
57 std::vector<AFFECTED_ITEM>
items;
63 aJson[
"type"] = aViolation.
type;
65 aJson[
"severity"] = aViolation.
severity;
66 aJson[
"items"] = aViolation.
items;
69 aJson[
"excluded"] = aViolation.
excluded;
73 aJson.at(
"type" ).get_to( aViolation.
type );
74 aJson.at(
"description" ).get_to( aViolation.
description );
75 aJson.at(
"severity" ).get_to( aViolation.
severity );
76 aJson.at(
"items" ).get_to( aViolation.
items );
77 aJson.at(
"excluded" ).get_to( aViolation.
excluded );
100 unconnected_items, schematic_parity, coordinate_units )
106 std::vector<VIOLATION> violations;
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) struct ERC_SHEET
std::vector< VIOLATION > unconnected_items
std::vector< VIOLATION > violations
std::vector< VIOLATION > schematic_parity
std::vector< ERC_SHEET > sheets
wxString coordinate_units
std::vector< AFFECTED_ITEM > items