MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / validate_object_metadata

Function validate_object_metadata

crates/openshell-server/src/grpc/mod.rs:163–168  ·  view source on GitHub ↗
(
    metadata: Option<&openshell_core::proto::datamodel::v1::ObjectMeta>,
    resource_type: &str,
)

Source from the content-addressed store, hash-verified

161// `tonic::Status` is large but is the API surface of gRPC handlers.
162#[allow(clippy::result_large_err)]
163pub fn validate_object_metadata(
164 metadata: Option<&openshell_core::proto::datamodel::v1::ObjectMeta>,
165 resource_type: &str,
166) -> Result<(), Status> {
167 validation::validate_object_metadata(metadata, resource_type)
168}
169
170// ---------------------------------------------------------------------------
171// Service struct

Callers 5

create_provider_recordFunction · 0.70
update_provider_recordFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected