This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathSampleObject1.cs
64 lines (55 loc) · 2.45 KB
/
SampleObject1.cs
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
using Newtonsoft.Json;
using System;
namespace Microsoft.OpenApi.CSharpAnnotations.DocumentGeneration.Tests.Contracts
{
/// <summary>
/// Sample contract for object 1
/// </summary>
public sealed class SampleObject1
{
/// <summary>
/// Gets or sets the sample property bool
/// </summary>
[JsonProperty(PropertyName = "samplePropertyBool", Required = Required.Default)]
public bool SamplePropertyBool { get; set; }
/// <summary>
/// Gets or sets the sample property int
/// </summary>
[JsonProperty(PropertyName = "samplePropertyStringInt", Required = Required.Default)]
public int SamplePropertyInt { get; set; }
/// <summary>
/// Gets or sets the sample property string 1
/// </summary>
[JsonProperty(PropertyName = "samplePropertyString1", Required = Required.Default)]
public string SamplePropertyString1 { get; set; }
/// <summary>
/// Gets or sets the sample property string 2
/// </summary>
[JsonProperty(PropertyName = "samplePropertyString2", Required = Required.Default)]
public string SamplePropertyString2 { get; set; }
/// <summary>
/// Gets or sets the sample property string 3
/// </summary>
[JsonProperty(PropertyName = "samplePropertyString3", Required = Required.Always)]
public string SamplePropertyString3 { get; set; }
/// <summary>
/// Gets or sets the sample property string 4
/// </summary>
[JsonProperty(PropertyName = "samplePropertyString4", Required = Required.Always)]
public string SamplePropertyString4 { get; set; }
/// <summary>
/// Gets or sets the sample property enum
/// </summary>
[JsonProperty(PropertyName = "samplePropertyEnum", Required = Required.Always)]
public SampleEnum1 SamplePropertyEnum { get; set; }
/// <summary>
/// Gets or sets the sample timespan
/// </summary>
[JsonProperty(PropertyName = "samplePropertyTimespan", Required = Required.Always)]
public TimeSpan SamplePropertyTimespan { get; set; }
}
}