@@ -190,8 +190,10 @@ namespace Microsoft.OpenApi.Extensions
190
190
}
191
191
public static class OpenApiTypeMapper
192
192
{
193
+ public static Microsoft.OpenApi.Models.JsonSchemaType IdentifierToEnumType(string identifier) { }
193
194
public static System.Type MapOpenApiPrimitiveTypeToSimpleType(this Microsoft.OpenApi.Models.OpenApiSchema schema) { }
194
195
public static Microsoft.OpenApi.Models.OpenApiSchema MapTypeToOpenApiPrimitiveType(this System.Type type) { }
196
+ public static string ToIdentifier(Microsoft.OpenApi.Models.JsonSchemaType? schemaType) { }
195
197
}
196
198
public static class StringExtensions
197
199
{
@@ -329,6 +331,18 @@ namespace Microsoft.OpenApi.MicrosoftExtensions
329
331
}
330
332
namespace Microsoft.OpenApi.Models
331
333
{
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
+ }
332
346
public class OpenApiCallback : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiReferenceable, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
333
347
{
334
348
public OpenApiCallback() { }
@@ -907,7 +921,7 @@ namespace Microsoft.OpenApi.Models
907
921
public virtual System.Collections.Generic.ISet<string> Required { get; set; }
908
922
public virtual string Schema { get; set; }
909
923
public virtual string Title { get; set; }
910
- public virtual object Type { get; set; }
924
+ public virtual Microsoft.OpenApi.Models.JsonSchemaType? Type { get; set; }
911
925
public virtual bool UnEvaluatedProperties { get; set; }
912
926
public virtual bool UnevaluatedProperties { get; set; }
913
927
public virtual bool? UniqueItems { get; set; }
@@ -1248,7 +1262,7 @@ namespace Microsoft.OpenApi.Models.References
1248
1262
public override System.Collections.Generic.ISet<string> Required { get; set; }
1249
1263
public override string Schema { get; set; }
1250
1264
public override string Title { get; set; }
1251
- public override object Type { get; set; }
1265
+ public override Microsoft.OpenApi.Models.JsonSchemaType? Type { get; set; }
1252
1266
public override bool UnEvaluatedProperties { get; set; }
1253
1267
public override bool UnevaluatedProperties { get; set; }
1254
1268
public override bool? UniqueItems { get; set; }
0 commit comments