-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc57cda
commit d035ed1
Showing
5 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
dotnet/src/Functions/Functions.OpenApi/RestApiParameterFilterContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Microsoft.SemanticKernel.Plugins.OpenApi; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="RestApiParameterFilterContext"/> class. | ||
/// </summary> | ||
[Experimental("SKEXP0040")] | ||
internal sealed class RestApiParameterFilterContext | ||
{ | ||
/// <summary> | ||
/// The instance of <see cref="RestApiOperation"/> this parameter belongs to. | ||
/// </summary> | ||
public RestApiOperation Operation { get; set; } | ||
|
||
/// <summary> | ||
/// The instance of <see cref="RestApiParameter"/> to filter. | ||
/// </summary> | ||
public RestApiParameter Parameter { get; set; } | ||
|
||
/// <summary> | ||
/// The parent object of the parameter, can be either an instance | ||
/// of <see cref="RestApiPayload"/> or <see cref="RestApiPayloadProperty"/> | ||
/// null if the parameter belongs to the operation. | ||
/// </summary> | ||
public object? Parent { get; set; } | ||
|
||
/// <summary> | ||
/// Creates a new instance of the <see cref="RestApiParameterFilterContext"/> class. | ||
/// </summary> | ||
/// <param name="operation">The REST API operation</param> | ||
/// <param name="parameter">The REST API parameter to filter.</param> | ||
internal RestApiParameterFilterContext(RestApiOperation operation, RestApiParameter parameter) | ||
{ | ||
this.Operation = operation; | ||
this.Parameter = parameter; | ||
} | ||
} |