@@ -233,7 +233,7 @@ class dp_error_collector final : public pb::DescriptorPool::ErrorCollector {
233
233
// /\brief Implements ZeroCopyInputStream with a copy of the definition
234
234
class schema_def_input_stream : public pb ::io::ZeroCopyInputStream {
235
235
public:
236
- explicit schema_def_input_stream (const canonical_schema_definition & def)
236
+ explicit schema_def_input_stream (const unparsed_schema_definition & def)
237
237
: _is{def.shared_raw ()}
238
238
, _impl{&_is.istream ()} {}
239
239
@@ -255,7 +255,7 @@ class parser {
255
255
: _parser{}
256
256
, _fdp{} {}
257
257
258
- const pb::FileDescriptorProto& parse (const canonical_schema & schema) {
258
+ const pb::FileDescriptorProto& parse (const unparsed_schema & schema) {
259
259
schema_def_input_stream is{schema.def ()};
260
260
io_error_collector error_collector;
261
261
pb::io::Tokenizer t{&is, &error_collector};
@@ -431,7 +431,7 @@ build_file(pb::DescriptorPool& dp, const pb::FileDescriptorProto& fdp) {
431
431
ss::future<pb::FileDescriptorProto> build_file_with_refs (
432
432
pb::DescriptorPool& dp,
433
433
schema_getter& store,
434
- canonical_schema schema,
434
+ unparsed_schema schema,
435
435
normalize norm) {
436
436
for (const auto & ref : schema.def ().refs ()) {
437
437
if (dp.FindFileByName (ref.name )) {
@@ -442,7 +442,7 @@ ss::future<pb::FileDescriptorProto> build_file_with_refs(
442
442
co_await build_file_with_refs (
443
443
dp,
444
444
store,
445
- canonical_schema {subject{ref.name }, std::move (dep.schema ).def ()},
445
+ unparsed_schema {subject{ref.name }, std::move (dep.schema ).def ()},
446
446
normalize::no);
447
447
}
448
448
@@ -461,7 +461,7 @@ ss::future<pb::FileDescriptorProto> build_file_with_refs(
461
461
ss::future<pb::FileDescriptorProto> import_schema (
462
462
pb::DescriptorPool& dp,
463
463
schema_getter& store,
464
- canonical_schema schema,
464
+ unparsed_schema schema,
465
465
normalize norm) {
466
466
try {
467
467
co_return co_await build_file_with_refs (
@@ -587,7 +587,7 @@ operator<<(std::ostream& os, const protobuf_schema_definition& def) {
587
587
}
588
588
589
589
ss::future<protobuf_schema_definition> make_protobuf_schema_definition (
590
- schema_getter& store, canonical_schema schema, normalize norm) {
590
+ schema_getter& store, unparsed_schema schema, normalize norm) {
591
591
auto refs = schema.def ().refs ();
592
592
auto impl = ss::make_shared<protobuf_schema_definition::impl>();
593
593
auto v2_renderer = protobuf_renderer_v2::no;
@@ -608,7 +608,7 @@ ss::future<protobuf_schema_definition> make_protobuf_schema_definition(
608
608
}
609
609
610
610
ss::future<canonical_schema_definition> validate_protobuf_schema (
611
- sharded_store& store, canonical_schema schema, normalize norm) {
611
+ sharded_store& store, unparsed_schema schema, normalize norm) {
612
612
auto res = co_await make_protobuf_schema_definition (
613
613
store, std::move (schema), norm);
614
614
co_return canonical_schema_definition{std::move (res)};
@@ -618,9 +618,9 @@ ss::future<canonical_schema> make_canonical_protobuf_schema(
618
618
sharded_store& store, unparsed_schema schema, normalize norm) {
619
619
auto [sub, unparsed] = std::move (schema).destructure ();
620
620
auto [def, type, refs] = std::move (unparsed).destructure ();
621
- canonical_schema temp{
621
+ unparsed_schema temp{
622
622
sub,
623
- {canonical_schema_definition ::raw_string{std::move (def)()},
623
+ {unparsed_schema_definition ::raw_string{std::move (def)()},
624
624
type,
625
625
std::move (refs)}};
626
626
0 commit comments