Skip to content

Commit

Permalink
Renaming NullableStringProperty to StringPropertyWithNullExample for …
Browse files Browse the repository at this point in the history
…clarity
  • Loading branch information
mpdunlop committed Jun 29, 2021
1 parent 30f9bf9 commit cee9d0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public class XmlAnnotatedType
public Guid GuidProperty { get; set; }

/// <summary>
/// Summary for Nullable StringProperty
/// Summary for Nullable StringPropertyWithNullExample
/// </summary>
/// <example>null</example>
public string NullableStringProperty { get; set; }
public string StringPropertyWithNullExample { get; set; }

/// <summary>
/// Summary for StringProperty
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void Apply_SetsDescription_FromPropertySummaryTag(
[InlineData(typeof(XmlAnnotatedType), nameof(XmlAnnotatedType.GuidProperty), "string", "\"d3966535-2637-48fa-b911-e3c27405ee09\"")]
[InlineData(typeof(XmlAnnotatedType), nameof(XmlAnnotatedType.StringProperty), "string", "\"Example for StringProperty\"")]
[InlineData(typeof(XmlAnnotatedType), nameof(XmlAnnotatedType.ObjectProperty), "object", "{\n \"prop1\": 1,\n \"prop2\": \"foobar\"\n}")]
[InlineData(typeof(XmlAnnotatedType), nameof(XmlAnnotatedType.NullableStringProperty), "string", "null")]
[InlineData(typeof(XmlAnnotatedType), nameof(XmlAnnotatedType.StringPropertyWithNullExample), "string", "null")]
[UseInvariantCulture]
public void Apply_SetsExample_FromPropertyExampleTag(
Type declaringType,
Expand Down

0 comments on commit cee9d0f

Please sign in to comment.