Exemplo n.º 1
0
        internal void RegisterSubType(PolymorphicType subTypeInfo)
        {
            if (IsBase && Discriminator == null)
                throw new InvalidOperationException("Invalid Swashbuckle configuration. Discriminator must be set on the base class ");

            _subTypes.Add(subTypeInfo);
        }
Exemplo n.º 2
0
        internal void RegisterSubType(PolymorphicType subTypeInfo)
        {
            if (IsBase && Discriminator == null)
            {
                throw new InvalidOperationException("Invalid Swashbuckle configuration. Discriminator must be set on the base class ");
            }

            _subTypes.Add(subTypeInfo);
        }