Skip to content

Instantly share code, notes, and snippets.

@gaboe
gaboe / gist:fa93f8f42175cf2407ec53f9ab139e8e
Created September 2, 2020 08:30
NullReferenceTypePropertyFilter
public class NullReferenceTypePropertyFilter : ISchemaFilter
{
public void Apply(OpenApiSchema schema, SchemaFilterContext context)
{
Type type;
List<CustomAttributeData> attributes;
if (context.MemberInfo is PropertyInfo propertyInfo)
{
type = propertyInfo.PropertyType;
attributes = CollectContextAttributes(propertyInfo.DeclaringType)
using BLogic.BeCommerce.Domain.Models.Products;
using System.Collections.Generic;
namespace BLogic.BeCommerce.Domain.Models.Warehouses.Dtos
{
public interface IStockQuantityTextParams
{
int WarehouseID { get; }
bool IsOnRequest { get; }