Browse Source

Merge pull request #22011 from abpframework/TypeApiDescriptionModel

Update TypeApiDescriptionModel to include instance and public properties.
pull/22012/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
57593304b0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/TypeApiDescriptionModel.cs

3
framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/TypeApiDescriptionModel.cs

@ -1,5 +1,6 @@
using System; using System;
using System.Linq; using System.Linq;
using System.Reflection;
using Volo.Abp.Reflection; using Volo.Abp.Reflection;
namespace Volo.Abp.Http.Modeling; namespace Volo.Abp.Http.Modeling;
@ -46,7 +47,7 @@ public class TypeApiDescriptionModel
else else
{ {
typeModel.Properties = type typeModel.Properties = type
.GetProperties() .GetProperties(BindingFlags.Instance | BindingFlags.Public)
.Where(p => p.DeclaringType == type) .Where(p => p.DeclaringType == type)
.Select(PropertyApiDescriptionModel.Create) .Select(PropertyApiDescriptionModel.Create)
.ToArray(); .ToArray();

Loading…
Cancel
Save