1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 07:25:44 +03:00
semantic/proto/json_diff.proto

79 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

// This file was generated by proto-gen. Do not edit by hand.
syntax = "proto3";
package github.semantic.jsondiff;
import "types.proto";
option java_package = "com.github.semantic.jsondiff";
option go_package = "github.com/semantic/jsondiff;json";
message JSONDiff {
oneof diff {
Merge merge = 1;
Delete delete = 2;
Insert insert = 3;
Replace replace = 4;
}
message Merge {
JSONSyntax syntax = 1;
}
message Delete {
JSONSyntax before = 1;
}
message Insert {
JSONSyntax after = 1;
}
message Replace {
JSONSyntax before = 1;
JSONSyntax after = 2;
}
}
message JSONSyntax {
oneof syntax {
Null null = 1;
Array array = 2;
Boolean boolean = 3;
Hash hash = 4;
Float float = 5;
KeyValue keyValue = 6;
TextElement textElement = 7;
Error error = 8;
}
}
message Null { }
message Array {
repeated JSONDiff arrayElements = 1;
}
message Boolean {
bool booleanContent = 1;
}
message Hash {
repeated JSONDiff hashElements = 1;
}
message Float {
string floatContent = 1;
}
message KeyValue {
JSONDiff key = 1;
JSONDiff value = 2;
}
message TextElement {
string textElementContent = 1;
}
message Error {
repeated ErrorSite errorCallStack = 1;
repeated string errorExpected = 2;
string errorActual = 3;
repeated JSONDiff errorChildren = 4;
}