-
Notifications
You must be signed in to change notification settings - Fork 253
/
Copy pathIOpenApiResponse.cs
29 lines (25 loc) · 1.17 KB
/
IOpenApiResponse.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
using System.Collections.Generic;
using Microsoft.OpenApi.Interfaces;
namespace Microsoft.OpenApi.Models.Interfaces;
/// <summary>
/// Defines the base properties for the response object.
/// This interface is provided for type assertions but should not be implemented by package consumers beyond automatic mocking.
/// </summary>
public interface IOpenApiResponse : IOpenApiDescribedElement, IOpenApiReadOnlyExtensible, IShallowCopyable<IOpenApiResponse>, IOpenApiReferenceable
{
/// <summary>
/// Maps a header name to its definition.
/// </summary>
public Dictionary<string, IOpenApiHeader>? Headers { get; }
/// <summary>
/// A map containing descriptions of potential response payloads.
/// The key is a media type or media type range and the value describes it.
/// </summary>
public Dictionary<string, OpenApiMediaType>? Content { get; }
/// <summary>
/// A map of operations links that can be followed from the response.
/// The key of the map is a short name for the link,
/// following the naming constraints of the names for Component Objects.
/// </summary>
public Dictionary<string, IOpenApiLink>? Links { get; }
}