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

Function check_plugin_long_description

components/validation/src/web.rs:610–617  ·  view source on GitHub ↗
(ctx: &mut ValidationContext, long_desc: &str)

Source from the content-addressed store, hash-verified

608}
609
610fn check_plugin_long_description(ctx: &mut ValidationContext, long_desc: &str) {
611 if long_desc.chars().count() > 4000 {
612 ctx.push_field_error(
613 "long_description",
614 "long description can be max 4000 characters long".to_string(),
615 );
616 }
617}
618
619fn check_plugin_name(ctx: &mut ValidationContext, name: &str) {
620 if name.chars().count() > 32 {

Callers 1

validateMethod · 0.85

Calls 2

countMethod · 0.80
push_field_errorMethod · 0.80

Tested by

no test coverage detected