@@ -166,6 +166,14 @@ namespace Microsoft.OpenApi.Extensions
166
166
public const string Name = "extensions";
167
167
public void Evaluate(Json.Schema.EvaluationContext context) { }
168
168
}
169
+ [Json.Schema.SchemaKeyword("externalDocs")]
170
+ public class ExternalDocsKeyword : Json.Schema.IJsonSchemaKeyword
171
+ {
172
+ public const string Name = "externalDocs";
173
+ public ExternalDocsKeyword(Microsoft.OpenApi.Models.OpenApiExternalDocs value) { }
174
+ public Microsoft.OpenApi.Models.OpenApiExternalDocs Value { get; }
175
+ public void Evaluate(Json.Schema.EvaluationContext context) { }
176
+ }
169
177
public static class JsonSchemaBuilderExtensions
170
178
{
171
179
public static Json.Schema.JsonSchemaBuilder AdditionalPropertiesAllowed(this Json.Schema.JsonSchemaBuilder builder, bool additionalPropertiesAllowed) { }
@@ -174,6 +182,8 @@ namespace Microsoft.OpenApi.Extensions
174
182
public static Json.Schema.JsonSchemaBuilder ExclusiveMinimum(this Json.Schema.JsonSchemaBuilder builder, bool value) { }
175
183
public static Json.Schema.JsonSchemaBuilder Extensions(this Json.Schema.JsonSchemaBuilder builder, System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension> extensions) { }
176
184
public static Json.Schema.JsonSchemaBuilder Nullable(this Json.Schema.JsonSchemaBuilder builder, bool value) { }
185
+ public static Json.Schema.JsonSchemaBuilder OpenApiExternalDocs(this Json.Schema.JsonSchemaBuilder builder, Microsoft.OpenApi.Models.OpenApiExternalDocs externalDocs) { }
186
+ public static Json.Schema.JsonSchemaBuilder Remove(this Json.Schema.JsonSchemaBuilder builder, string keyword) { }
177
187
public static Json.Schema.JsonSchemaBuilder Summary(this Json.Schema.JsonSchemaBuilder builder, string summary) { }
178
188
}
179
189
public static class JsonSchemaExtensions
@@ -184,6 +194,7 @@ namespace Microsoft.OpenApi.Extensions
184
194
public static Microsoft.OpenApi.Extensions.DiscriminatorKeyword GetOpenApiDiscriminator(this Json.Schema.JsonSchema schema) { }
185
195
public static bool? GetOpenApiExclusiveMaximum(this Json.Schema.JsonSchema schema) { }
186
196
public static bool? GetOpenApiExclusiveMinimum(this Json.Schema.JsonSchema schema) { }
197
+ public static Microsoft.OpenApi.Models.OpenApiExternalDocs GetOpenApiExternalDocs(this Json.Schema.JsonSchema schema) { }
187
198
public static string GetSummary(this Json.Schema.JsonSchema schema) { }
188
199
}
189
200
[Json.Schema.SchemaKeyword("nullable")]
@@ -299,7 +310,7 @@ namespace Microsoft.OpenApi.MicrosoftExtensions
299
310
public class EnumDescription : Microsoft.OpenApi.Interfaces.IOpenApiElement
300
311
{
301
312
public EnumDescription() { }
302
- public EnumDescription(Microsoft.OpenApi.Any.OpenApiObject source) { }
313
+ public EnumDescription(System.Text.Json.Nodes.JsonObject source) { }
303
314
public string Description { get; set; }
304
315
public string Name { get; set; }
305
316
public string Value { get; set; }
@@ -313,15 +324,15 @@ namespace Microsoft.OpenApi.MicrosoftExtensions
313
324
public string Version { get; set; }
314
325
public static string Name { get; }
315
326
public void Write(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion) { }
316
- public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiDeprecationExtension Parse(Microsoft.OpenApi.Any.IOpenApiAny source) { }
327
+ public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiDeprecationExtension Parse(Microsoft.OpenApi.Any.OpenApiAny source) { }
317
328
}
318
329
public class OpenApiEnumFlagsExtension : Microsoft.OpenApi.Interfaces.IOpenApiExtension
319
330
{
320
331
public OpenApiEnumFlagsExtension() { }
321
332
public bool IsFlags { get; set; }
322
333
public static string Name { get; }
323
334
public void Write(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion) { }
324
- public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiEnumFlagsExtension Parse(Microsoft.OpenApi.Any.IOpenApiAny source) { }
335
+ public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiEnumFlagsExtension Parse(Microsoft.OpenApi.Any.OpenApiAny source) { }
325
336
}
326
337
public class OpenApiEnumValuesDescriptionExtension : Microsoft.OpenApi.Interfaces.IOpenApiExtension
327
338
{
@@ -330,7 +341,7 @@ namespace Microsoft.OpenApi.MicrosoftExtensions
330
341
public System.Collections.Generic.List<Microsoft.OpenApi.MicrosoftExtensions.EnumDescription> ValuesDescriptions { get; set; }
331
342
public static string Name { get; }
332
343
public void Write(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion) { }
333
- public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiEnumValuesDescriptionExtension Parse(Microsoft.OpenApi.Any.IOpenApiAny source) { }
344
+ public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiEnumValuesDescriptionExtension Parse(Microsoft.OpenApi.Any.OpenApiAny source) { }
334
345
}
335
346
public class OpenApiPagingExtension : Microsoft.OpenApi.Interfaces.IOpenApiExtension
336
347
{
@@ -340,23 +351,23 @@ namespace Microsoft.OpenApi.MicrosoftExtensions
340
351
public string OperationName { get; set; }
341
352
public static string Name { get; }
342
353
public void Write(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion) { }
343
- public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiPagingExtension Parse(Microsoft.OpenApi.Any.IOpenApiAny source) { }
354
+ public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiPagingExtension Parse(Microsoft.OpenApi.Any.OpenApiAny source) { }
344
355
}
345
356
public class OpenApiPrimaryErrorMessageExtension : Microsoft.OpenApi.Interfaces.IOpenApiExtension
346
357
{
347
358
public OpenApiPrimaryErrorMessageExtension() { }
348
359
public bool IsPrimaryErrorMessage { get; set; }
349
360
public static string Name { get; }
350
361
public void Write(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion) { }
351
- public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiPrimaryErrorMessageExtension Parse(Microsoft.OpenApi.Any.IOpenApiAny source) { }
362
+ public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiPrimaryErrorMessageExtension Parse(Microsoft.OpenApi.Any.OpenApiAny source) { }
352
363
}
353
364
public class OpenApiReservedParameterExtension : Microsoft.OpenApi.Interfaces.IOpenApiExtension
354
365
{
355
366
public OpenApiReservedParameterExtension() { }
356
367
public bool? IsReserved { get; set; }
357
368
public static string Name { get; }
358
369
public void Write(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Microsoft.OpenApi.OpenApiSpecVersion specVersion) { }
359
- public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiReservedParameterExtension Parse(Microsoft.OpenApi.Any.IOpenApiAny source) { }
370
+ public static Microsoft.OpenApi.MicrosoftExtensions.OpenApiReservedParameterExtension Parse(Microsoft.OpenApi.Any.OpenApiAny source) { }
360
371
}
361
372
}
362
373
namespace Microsoft.OpenApi.Models
@@ -1471,9 +1482,9 @@ namespace Microsoft.OpenApi.Writers
1471
1482
void Flush();
1472
1483
void WriteEndArray();
1473
1484
void WriteEndObject();
1474
- void WriteJsonSchema(Json.Schema.JsonSchema schema);
1475
- void WriteJsonSchemaReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, System.Uri reference);
1476
- void WriteJsonSchemaWithoutReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Json.Schema.JsonSchema schema);
1485
+ void WriteJsonSchema(Json.Schema.JsonSchema schema, Microsoft.OpenApi.OpenApiSpecVersion version );
1486
+ void WriteJsonSchemaReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, System.Uri reference, Microsoft.OpenApi.OpenApiSpecVersion version );
1487
+ void WriteJsonSchemaWithoutReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Json.Schema.JsonSchema schema, Microsoft.OpenApi.OpenApiSpecVersion version );
1477
1488
void WriteNull();
1478
1489
void WritePropertyName(string name);
1479
1490
void WriteRaw(string value);
@@ -1534,9 +1545,9 @@ namespace Microsoft.OpenApi.Writers
1534
1545
public abstract void WriteEndArray();
1535
1546
public abstract void WriteEndObject();
1536
1547
public virtual void WriteIndentation() { }
1537
- public void WriteJsonSchema(Json.Schema.JsonSchema schema) { }
1538
- public void WriteJsonSchemaReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, System.Uri reference ) { }
1539
- public void WriteJsonSchemaWithoutReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Json.Schema.JsonSchema schema) { }
1548
+ public void WriteJsonSchema(Json.Schema.JsonSchema schema, Microsoft.OpenApi.OpenApiSpecVersion version ) { }
1549
+ public void WriteJsonSchemaReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, System.Uri referenceUri, Microsoft.OpenApi.OpenApiSpecVersion version ) { }
1550
+ public void WriteJsonSchemaWithoutReference(Microsoft.OpenApi.Writers.IOpenApiWriter writer, Json.Schema.JsonSchema schema, Microsoft.OpenApi.OpenApiSpecVersion version ) { }
1540
1551
public abstract void WriteNull();
1541
1552
public abstract void WritePropertyName(string name);
1542
1553
public abstract void WriteRaw(string value);
@@ -1572,6 +1583,8 @@ namespace Microsoft.OpenApi.Writers
1572
1583
where T : struct { }
1573
1584
public static void WriteProperty<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, T? value)
1574
1585
where T : struct { }
1586
+ public static void WriteRequiredCollection<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, System.Collections.Generic.IEnumerable<T> elements, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, T> action)
1587
+ where T : Microsoft.OpenApi.Interfaces.IOpenApiElement { }
1575
1588
public static void WriteRequiredMap(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, System.Collections.Generic.IDictionary<string, string> elements, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, string> action) { }
1576
1589
public static void WriteRequiredMap<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, System.Collections.Generic.IDictionary<string, T> elements, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, T> action)
1577
1590
where T : Microsoft.OpenApi.Interfaces.IOpenApiElement { }
0 commit comments