protected FilterInputTypeDescriptor( IDescriptorContext context, Type entityType, string?scope) : base(context) { Convention = context.GetFilterConvention(scope); Definition.EntityType = entityType ?? throw new ArgumentNullException(nameof(entityType)); Definition.RuntimeType = typeof(object); Definition.Name = Convention.GetTypeName(entityType); Definition.Description = Convention.GetTypeDescription(entityType); Definition.Fields.BindingBehavior = context.Options.DefaultBindingBehavior; Definition.Scope = scope; Definition.UseAnd = Convention.IsAndAllowed(); Definition.UseOr = Convention.IsOrAllowed(); }