forked from domaindrivendev/Swashbuckle.AspNetCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXmlAnnotatedRecord.cs
More file actions
40 lines (38 loc) · 2.21 KB
/
XmlAnnotatedRecord.cs
File metadata and controls
40 lines (38 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Swashbuckle.AspNetCore.TestSupport;
namespace Swashbuckle.AspNetCore.SwaggerGen.Test;
#nullable enable
/// <summary>
/// Summary for XmlAnnotatedRecord
/// </summary>
/// <param name="BoolProperty" example="true">Summary for BoolProperty</param>
/// <param name="IntProperty" example="10">Summary for IntProperty</param>
/// <param name="LongProperty" example="4294967295">Summary for LongProperty</param>
/// <param name="FloatProperty" example="1.2">Summary for FloatProperty</param>
/// <param name="DoubleProperty" example="1.25">Summary for DoubleProperty</param>
/// <param name="DateTimeProperty" example="6/22/2022 12:00:00 AM">Summary for DateTimeProperty</param>
/// <param name="EnumProperty" example="2">Summary for EnumProperty</param>
/// <param name="GuidProperty" example="d3966535-2637-48fa-b911-e3c27405ee09">Summary for GuidProperty</param>
/// <param name="NullableStringPropertyWithNullExample" example="null">Summary for NullableStringPropertyWithNullExample</param>
/// <param name="StringPropertyWithNullExample" example="null">Summary for StringPropertyWithNullExample</param>
/// <param name="NullableStringPropertyWithNotNullExample" example="example">Summary for NullableStringPropertyWithNotNullExample</param>
/// <param name="NullableIntPropertyWithNotNullExample" example="3">Summary for NullableIntPropertyWithNotNullExample</param>
/// <param name="StringProperty" example="Example for StringProperty">Summary for StringProperty</param>
/// <param name="StringPropertyWithUri" example="https://test.com/a?b=1&c=2">Summary for StringPropertyWithUri</param>
/// <param name="ObjectProperty" example="{"prop1": 1, "prop2": "foobar"}">Summary for ObjectProperty</param>
public record XmlAnnotatedRecord(
bool BoolProperty,
int IntProperty,
long LongProperty,
float FloatProperty,
double DoubleProperty,
DateTime DateTimeProperty,
IntEnum EnumProperty,
Guid GuidProperty,
string? NullableStringPropertyWithNullExample,
string StringPropertyWithNullExample,
string? NullableStringPropertyWithNotNullExample,
int? NullableIntPropertyWithNotNullExample,
string StringProperty,
string StringPropertyWithUri,
object ObjectProperty
);