MCPcopy Create free account
hub / github.com/Botloader/botloader / validate

Method validate

components/webapi/src/routes/plugins.rs:226–228  ·  view source on GitHub ↗
(&self, ctx: &mut ValidationContext, _: &())

Source from the content-addressed store, hash-verified

224impl Validator for UpdatePluginDevSourceRequest {
225 type ContextData = ();
226 fn validate(&self, ctx: &mut ValidationContext, _: &()) {
227 validation::web::check_script_source(ctx, "new_source", &self.new_source);
228 }
229}
230
231// update plugin dev source

Callers

nothing calls this directly

Calls 1

check_script_sourceFunction · 0.85

Tested by

no test coverage detected