Skip to content

Commit d0fb2c7

Browse files
committed
Update API interface
1 parent 2e03505 commit d0fb2c7

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ namespace Microsoft.OpenApi.Extensions
190190
}
191191
public static class OpenApiTypeMapper
192192
{
193+
public static Microsoft.OpenApi.Models.JsonSchemaType IdentifierToEnumType(string identifier) { }
193194
public static System.Type MapOpenApiPrimitiveTypeToSimpleType(this Microsoft.OpenApi.Models.OpenApiSchema schema) { }
194195
public static Microsoft.OpenApi.Models.OpenApiSchema MapTypeToOpenApiPrimitiveType(this System.Type type) { }
196+
public static string ToIdentifier(Microsoft.OpenApi.Models.JsonSchemaType? schemaType) { }
195197
}
196198
public static class StringExtensions
197199
{
@@ -329,6 +331,18 @@ namespace Microsoft.OpenApi.MicrosoftExtensions
329331
}
330332
namespace Microsoft.OpenApi.Models
331333
{
334+
[System.Flags]
335+
public enum JsonSchemaType
336+
{
337+
Any = 0,
338+
Null = 1,
339+
Boolean = 2,
340+
Integer = 4,
341+
Number = 8,
342+
String = 16,
343+
Object = 32,
344+
Array = 64,
345+
}
332346
public class OpenApiCallback : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiReferenceable, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
333347
{
334348
public OpenApiCallback() { }
@@ -907,7 +921,7 @@ namespace Microsoft.OpenApi.Models
907921
public virtual System.Collections.Generic.ISet<string> Required { get; set; }
908922
public virtual string Schema { get; set; }
909923
public virtual string Title { get; set; }
910-
public virtual object Type { get; set; }
924+
public virtual Microsoft.OpenApi.Models.JsonSchemaType? Type { get; set; }
911925
public virtual bool UnEvaluatedProperties { get; set; }
912926
public virtual bool UnevaluatedProperties { get; set; }
913927
public virtual bool? UniqueItems { get; set; }
@@ -1248,7 +1262,7 @@ namespace Microsoft.OpenApi.Models.References
12481262
public override System.Collections.Generic.ISet<string> Required { get; set; }
12491263
public override string Schema { get; set; }
12501264
public override string Title { get; set; }
1251-
public override object Type { get; set; }
1265+
public override Microsoft.OpenApi.Models.JsonSchemaType? Type { get; set; }
12521266
public override bool UnEvaluatedProperties { get; set; }
12531267
public override bool UnevaluatedProperties { get; set; }
12541268
public override bool? UniqueItems { get; set; }

0 commit comments

Comments
 (0)