Skip to content

Commit ccbef09

Browse files
WIP; add OpenApiReferencableExtensions
1 parent 46df7d2 commit ccbef09

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using Microsoft.OpenApi.Interfaces;
7+
using Microsoft.OpenApi.Models;
8+
using Microsoft.OpenApi.Services;
9+
using Microsoft.OpenApi.Validations;
10+
11+
namespace Microsoft.OpenApi.Extensions
12+
{
13+
/// <summary>
14+
/// TODO: tmpDbg comment
15+
/// </summary>
16+
public static class OpenApiReferencableExtensions
17+
{
18+
/// <summary>
19+
/// TODO: tmpDbg comment
20+
/// </summary>
21+
/// <param name="element">Element to validate</param>
22+
/// <param name="ruleSet">Optional set of rules to use for validation</param>
23+
/// <returns>An IEnumerable of errors. This function will never return null.</returns>
24+
public static IOpenApiReferenceable ResolveReference(this IOpenApiReferenceable element, string jsonPointer)
25+
{
26+
throw new NotImplementedException();
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)