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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
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(); |
|
|
|