public virtual void Validate(Server server, HttpListenerContext context, JsonObject json) { if (Fields == null || Fields.Length == 0) { return; } Json.CheckFields(json, Fields); if (Types != null && Types.Length > 0) { Json.CheckTypes(json, Fields, Types); } if (Name.StartsWith("admin.")) { Secret.Check(context); } }