-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2092 from microsoft/fix/link-reference
fix: open API link reference proxy design pattern implementation
- Loading branch information
Showing
20 changed files
with
206 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System.Collections.Generic; | ||
using Microsoft.OpenApi.Interfaces; | ||
|
||
namespace Microsoft.OpenApi.Models.Interfaces; | ||
|
||
/// <summary> | ||
/// Defines the base properties for the link object. | ||
/// This interface is provided for type assertions but should not be implemented by package consumers beyond automatic mocking. | ||
/// </summary> | ||
public interface IOpenApiLink : IOpenApiDescribedElement, IOpenApiSerializable, IOpenApiReadOnlyExtensible | ||
{ | ||
/// <summary> | ||
/// A relative or absolute reference to an OAS operation. | ||
/// This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. | ||
/// </summary> | ||
public string OperationRef { get; } | ||
|
||
/// <summary> | ||
/// The name of an existing, resolvable OAS operation, as defined with a unique operationId. | ||
/// This field is mutually exclusive of the operationRef field. | ||
/// </summary> | ||
public string OperationId { get; } | ||
|
||
/// <summary> | ||
/// A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. | ||
/// </summary> | ||
public IDictionary<string, RuntimeExpressionAnyWrapper> Parameters { get; } | ||
|
||
/// <summary> | ||
/// A literal value or {expression} to use as a request body when calling the target operation. | ||
/// </summary> | ||
public RuntimeExpressionAnyWrapper RequestBody { get; } | ||
/// <summary> | ||
/// A server object to be used by the target operation. | ||
/// </summary> | ||
public OpenApiServer Server { get; } | ||
} |
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
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
Oops, something went wrong.