Skip to content

Commit

Permalink
allow data classes to be used without DataContract/DataMember attribu…
Browse files Browse the repository at this point in the history
…tes - fixes #64
  • Loading branch information
abelsilva committed Jan 15, 2017
1 parent 5f29dab commit 1acda73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/SwaggerWcf/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.20")]
[assembly: AssemblyFileVersion("0.1.20")]
[assembly: AssemblyInformationalVersion("0.1.20")]
[assembly: AssemblyVersion("0.1.21")]
[assembly: AssemblyFileVersion("0.1.21")]
[assembly: AssemblyInformationalVersion("0.1.21")]
3 changes: 1 addition & 2 deletions src/SwaggerWcf/Support/DefinitionsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ public static Type GetEnumerableType(Type type)
private static DefinitionProperty ProcessProperty(PropertyInfo propertyInfo, IList<string> hiddenTags,
Stack<Type> typesStack)
{
if (propertyInfo.GetCustomAttribute<DataMemberAttribute>() == null
|| propertyInfo.GetCustomAttribute<SwaggerWcfHiddenAttribute>() != null
if (propertyInfo.GetCustomAttribute<SwaggerWcfHiddenAttribute>() != null
|| propertyInfo.GetCustomAttributes<SwaggerWcfTagAttribute>()
.Select(t => t.TagName)
.Any(hiddenTags.Contains))
Expand Down
2 changes: 1 addition & 1 deletion src/SwaggerWcf/SwaggerWcf.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<projectUrl>https://github.com/abelsilva/swaggerwcf</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>swagger-ui updated to 2.2.10 - fixes #55</releaseNotes>
<releaseNotes>allow data classes to be used without DataContract/DataMember attributes - fixes #64</releaseNotes>
<copyright>Copyright 2015</copyright>
<tags>swagger wcf .net c#</tags>
</metadata>
Expand Down

1 comment on commit 1acda73

@SeeSharp7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.