| 2389 | } |
| 2390 | |
| 2391 | Status Schema::CanReferenceFieldByName(std::string_view name) const { |
| 2392 | if (GetFieldByName(name) == nullptr) { |
| 2393 | return Status::Invalid("Field named '", name, |
| 2394 | "' not found or not unique in the schema."); |
| 2395 | } |
| 2396 | return Status::OK(); |
| 2397 | } |
| 2398 | |
| 2399 | Status Schema::CanReferenceFieldsByNames(const std::vector<std::string>& names) const { |
| 2400 | for (const auto& name : names) { |