Skip to content

Fix ErrorCause and InlineGetDictUserDefined protos #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Alphabetize maintainers ([#6](https://github.com/opensearch-project/opensearch-protobufs/pull/7))
- Rename opensearch-protobuf to opensearch-protobufs ([#13](https://github.com/opensearch-project/opensearch-protobufs/pull/13))
- Fix sourcefiles not found ([#18](https://github.com/opensearch-project/opensearch-protobufs/pull/18))
- Fix ErrorCause and InlineGetDictUserDefined protos ([#29](https://github.com/opensearch-project/opensearch-protobufs/pull/29))

### Security
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repository stores the Protobufs and generated code used for client <> serve

The [opensearch-api-specification repo](https://github.com/opensearch-project/opensearch-api-specification) will continue to be the source of truth, and these protobufs will mostly be a downstream consumer of the spec.

This repository will also include a variety of tooling and CI, linters and validators, and generated code, described in more default below.
This repository will also include a variety of tooling and CI, linters and validators, and generated code, which is described in more detail below.

## Intended usage of the repo
The repo will consist of:
Expand Down
3 changes: 1 addition & 2 deletions protos/schemas/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ message ObjectMap {
// Represents a repeated `Value`.
ListValue list_value = 6;
}

}

// `ListValue` is a wrapper around a repeated field of values.
Expand Down Expand Up @@ -275,7 +274,7 @@ message ErrorCause {

optional string index_uuid = 9;

.google.protobuf.Struct additional_details = 10;
.google.protobuf.Struct metadata = 10;

}
message ShardStatistics {
Expand Down
12 changes: 7 additions & 5 deletions protos/schemas/document.proto
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,17 @@ message ResponseItem {

message InlineGetDictUserDefined {
// [optional]
optional ObjectMap fields = 1;
.google.protobuf.Struct metadata_fields = 1;
// [optional]
.google.protobuf.Struct fields = 2;
// [required] Whether the document exists.
bool found = 2;
bool found = 3;
// [optional] The sequence number assigned to the document for the operation. Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version
optional int64 seq_no = 3;
optional int64 seq_no = 4;
// [optional] The primary term assigned to the document for the operation.
optional int64 primary_term = 4;
optional int64 primary_term = 5;
// [optional] Custom value used to route operations to a specific shard.
repeated string routing = 5;
repeated string routing = 6;
// [optional] Contains the document's data
optional bytes source = 7;
}