File tree Expand file tree Collapse file tree 11 files changed +194
-77
lines changed Expand file tree Collapse file tree 11 files changed +194
-77
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,20 @@ namespace Microsoft.OpenApi.Models.References
12
12
/// <summary>
13
13
/// Callback Object Reference: A reference to a map of possible out-of band callbacks related to the parent operation.
14
14
/// </summary>
15
- public class OpenApiCallbackReference : OpenApiCallback
15
+ public class OpenApiCallbackReference : OpenApiCallback , IOpenApiReferenceable
16
16
{
17
+ #nullable enable
17
18
internal OpenApiCallback _target ;
18
19
private readonly OpenApiReference _reference ;
19
20
20
- private OpenApiCallback Target
21
+ /// <summary>
22
+ /// Gets the target callback.
23
+ /// </summary>
24
+ /// <remarks>
25
+ /// If the reference is not resolved, this will return null.
26
+ /// </remarks>
27
+ public OpenApiCallback Target
28
+ #nullable restore
21
29
{
22
30
get
23
31
{
Original file line number Diff line number Diff line change @@ -12,14 +12,20 @@ namespace Microsoft.OpenApi.Models.References
12
12
/// <summary>
13
13
/// Example Object Reference.
14
14
/// </summary>
15
- public class OpenApiExampleReference : OpenApiExample
15
+ public class OpenApiExampleReference : OpenApiExample , IOpenApiReferenceable
16
16
{
17
17
internal OpenApiExample _target ;
18
18
private readonly OpenApiReference _reference ;
19
19
private string _summary ;
20
20
private string _description ;
21
21
22
- private OpenApiExample Target
22
+ /// <summary>
23
+ /// Gets the target example.
24
+ /// </summary>
25
+ /// <remarks>
26
+ /// If the reference is not resolved, this will return null.
27
+ /// </remarks>
28
+ public OpenApiExample Target
23
29
{
24
30
get
25
31
{
Original file line number Diff line number Diff line change @@ -12,13 +12,19 @@ namespace Microsoft.OpenApi.Models.References
12
12
/// <summary>
13
13
/// Header Object Reference.
14
14
/// </summary>
15
- public class OpenApiHeaderReference : OpenApiHeader
15
+ public class OpenApiHeaderReference : OpenApiHeader , IOpenApiReferenceable
16
16
{
17
17
internal OpenApiHeader _target ;
18
18
private readonly OpenApiReference _reference ;
19
19
private string _description ;
20
20
21
- private OpenApiHeader Target
21
+ /// <summary>
22
+ /// Gets the target header.
23
+ /// </summary>
24
+ /// <remarks>
25
+ /// If the reference is not resolved, this will return null.
26
+ /// </remarks>
27
+ public OpenApiHeader Target
22
28
{
23
29
get
24
30
{
Original file line number Diff line number Diff line change @@ -11,13 +11,19 @@ namespace Microsoft.OpenApi.Models.References
11
11
/// <summary>
12
12
/// Link Object Reference.
13
13
/// </summary>
14
- public class OpenApiLinkReference : OpenApiLink
14
+ public class OpenApiLinkReference : OpenApiLink , IOpenApiReferenceable
15
15
{
16
16
internal OpenApiLink _target ;
17
17
private readonly OpenApiReference _reference ;
18
18
private string _description ;
19
19
20
- private OpenApiLink Target
20
+ /// <summary>
21
+ /// Gets the target link.
22
+ /// </summary>
23
+ /// <remarks>
24
+ /// If the reference is not resolved, this will return null.
25
+ /// </remarks>
26
+ public OpenApiLink Target
21
27
{
22
28
get
23
29
{
Original file line number Diff line number Diff line change @@ -12,15 +12,21 @@ namespace Microsoft.OpenApi.Models.References
12
12
/// <summary>
13
13
/// Parameter Object Reference.
14
14
/// </summary>
15
- public class OpenApiParameterReference : OpenApiParameter
15
+ public class OpenApiParameterReference : OpenApiParameter , IOpenApiReferenceable
16
16
{
17
17
internal OpenApiParameter _target ;
18
18
private readonly OpenApiReference _reference ;
19
19
private string _description ;
20
20
private bool ? _explode ;
21
21
private ParameterStyle ? _style ;
22
22
23
- private OpenApiParameter Target
23
+ /// <summary>
24
+ /// Gets the target parameter.
25
+ /// </summary>
26
+ /// <remarks>
27
+ /// If the reference is not resolved, this will return null.
28
+ /// </remarks>
29
+ public OpenApiParameter Target
24
30
{
25
31
get
26
32
{
Original file line number Diff line number Diff line change @@ -11,14 +11,20 @@ namespace Microsoft.OpenApi.Models.References
11
11
/// <summary>
12
12
/// Path Item Object Reference: to describe the operations available on a single path.
13
13
/// </summary>
14
- public class OpenApiPathItemReference : OpenApiPathItem
14
+ public class OpenApiPathItemReference : OpenApiPathItem , IOpenApiReferenceable
15
15
{
16
16
internal OpenApiPathItem _target ;
17
17
private readonly OpenApiReference _reference ;
18
18
private string _description ;
19
19
private string _summary ;
20
20
21
- private OpenApiPathItem Target
21
+ /// <summary>
22
+ /// Gets the target path item.
23
+ /// </summary>
24
+ /// <remarks>
25
+ /// If the reference is not resolved, this will return null.
26
+ /// </remarks>
27
+ public OpenApiPathItem Target
22
28
{
23
29
get
24
30
{
Original file line number Diff line number Diff line change @@ -11,13 +11,19 @@ namespace Microsoft.OpenApi.Models.References
11
11
/// <summary>
12
12
/// Request Body Object Reference.
13
13
/// </summary>
14
- public class OpenApiRequestBodyReference : OpenApiRequestBody
14
+ public class OpenApiRequestBodyReference : OpenApiRequestBody , IOpenApiReferenceable
15
15
{
16
16
internal OpenApiRequestBody _target ;
17
17
private readonly OpenApiReference _reference ;
18
18
private string _description ;
19
19
20
- private OpenApiRequestBody Target
20
+ /// <summary>
21
+ /// Gets the target request body.
22
+ /// </summary>
23
+ /// <remarks>
24
+ /// If the reference is not resolved, this will return null.
25
+ /// </remarks>
26
+ public OpenApiRequestBody Target
21
27
{
22
28
get
23
29
{
Original file line number Diff line number Diff line change @@ -11,13 +11,19 @@ namespace Microsoft.OpenApi.Models.References
11
11
/// <summary>
12
12
/// Response Object Reference.
13
13
/// </summary>
14
- public class OpenApiResponseReference : OpenApiResponse
14
+ public class OpenApiResponseReference : OpenApiResponse , IOpenApiReferenceable
15
15
{
16
16
internal OpenApiResponse _target ;
17
17
private readonly OpenApiReference _reference ;
18
18
private string _description ;
19
19
20
- private OpenApiResponse Target
20
+ /// <summary>
21
+ /// Gets the target response.
22
+ /// </summary>
23
+ /// <remarks>
24
+ /// If the reference is not resolved, this will return null.
25
+ /// </remarks>
26
+ public OpenApiResponse Target
21
27
{
22
28
get
23
29
{
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace Microsoft.OpenApi.Models.References
12
12
/// <summary>
13
13
/// Schema reference object
14
14
/// </summary>
15
- public class OpenApiSchemaReference : OpenApiSchema
15
+ public class OpenApiSchemaReference : OpenApiSchema , IOpenApiReferenceable
16
16
{
17
17
#nullable enable
18
18
private OpenApiSchema ? _target ;
Original file line number Diff line number Diff line change @@ -11,13 +11,19 @@ namespace Microsoft.OpenApi.Models.References
11
11
/// <summary>
12
12
/// Security Scheme Object Reference.
13
13
/// </summary>
14
- public class OpenApiSecuritySchemeReference : OpenApiSecurityScheme
14
+ public class OpenApiSecuritySchemeReference : OpenApiSecurityScheme , IOpenApiReferenceable
15
15
{
16
16
internal OpenApiSecurityScheme _target ;
17
17
private readonly OpenApiReference _reference ;
18
18
private string _description ;
19
19
20
- private OpenApiSecurityScheme Target
20
+ /// <summary>
21
+ /// Gets the target security scheme.
22
+ /// </summary>
23
+ /// <remarks>
24
+ /// If the reference is not resolved, this will return null.
25
+ /// </remarks>
26
+ public OpenApiSecurityScheme Target
21
27
{
22
28
get
23
29
{
You can’t perform that action at this time.
0 commit comments