MCPcopy Create free account
hub / github.com/Snapchat/Valdi / updateSchema

Method updateSchema

valdi_core/src/valdi_core/cpp/Schema/ValueSchemaRegistry.cpp:261–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 return std::nullopt;
260 }
261
262 return {RegisteredValueSchema(entry.reference->getRegistryKey(), entry.schema)};
263}
264
265void ValueSchemaRegistry::updateSchema(ValueSchemaRegistrySchemaIdentifier identifier, const ValueSchema& schema) {
266 auto guard = lock();
267 SC_ASSERT(identifier < _entries.size());
268 _entries[identifier].schema = schema;

Callers 3

getResolvedSchemaMethod · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64