Browse Source

Merge pull request #22011 from abpframework/TypeApiDescriptionModel

Update TypeApiDescriptionModel to include instance and public properties.
pull/22012/head
Engincan VESKE 1 year 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.Linq;
using System.Reflection;
using Volo.Abp.Reflection;
namespace Volo.Abp.Http.Modeling;
@ -46,7 +47,7 @@ public class TypeApiDescriptionModel
else
{
typeModel.Properties = type
.GetProperties()
.GetProperties(BindingFlags.Instance | BindingFlags.Public)
.Where(p => p.DeclaringType == type)
.Select(PropertyApiDescriptionModel.Create)
.ToArray();

Loading…
Cancel
Save