Skip to content

Commit ead99b1

Browse files
committed
feat: Updated PublicApi.approved.txt.
1 parent 38f35c2 commit ead99b1

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

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

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -423,18 +423,18 @@ namespace Microsoft.OpenApi.Models
423423
public class OpenApiComponents : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
424424
{
425425
public OpenApiComponents() { }
426-
public OpenApiComponents(Microsoft.OpenApi.Models.OpenApiComponents components) { }
427-
public System.Collections.Generic.IDictionary<string, Json.Schema.JsonSchema> Schemas { get; set; }
428-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiCallback> Callbacks { get; set; }
429-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiExample> Examples { get; set; }
430-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension> Extensions { get; set; }
431-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiHeader> Headers { get; set; }
432-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiLink> Links { get; set; }
433-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiParameter> Parameters { get; set; }
434-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiPathItem> PathItems { get; set; }
435-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiRequestBody> RequestBodies { get; set; }
436-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiResponse> Responses { get; set; }
437-
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiSecurityScheme> SecuritySchemes { get; set; }
426+
public OpenApiComponents(Microsoft.OpenApi.Models.OpenApiComponents? components) { }
427+
public System.Collections.Generic.IDictionary<string, Json.Schema.JsonSchema>? Schemas { get; set; }
428+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiCallback>? Callbacks { get; set; }
429+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiExample>? Examples { get; set; }
430+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension>? Extensions { get; set; }
431+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiHeader>? Headers { get; set; }
432+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiLink>? Links { get; set; }
433+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiParameter>? Parameters { get; set; }
434+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiPathItem>? PathItems { get; set; }
435+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiRequestBody>? RequestBodies { get; set; }
436+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiResponse>? Responses { get; set; }
437+
public virtual System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiSecurityScheme>? SecuritySchemes { get; set; }
438438
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
439439
public void SerializeAsV3(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
440440
public void SerializeAsV31(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
@@ -606,35 +606,35 @@ namespace Microsoft.OpenApi.Models
606606
public class OpenApiDocument : Json.Schema.IBaseDocument, Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
607607
{
608608
public OpenApiDocument() { }
609-
public OpenApiDocument(Microsoft.OpenApi.Models.OpenApiDocument document) { }
609+
public OpenApiDocument(Microsoft.OpenApi.Models.OpenApiDocument? document) { }
610610
public System.Uri BaseUri { get; }
611-
public Microsoft.OpenApi.Models.OpenApiComponents Components { get; set; }
612-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension> Extensions { get; set; }
613-
public Microsoft.OpenApi.Models.OpenApiExternalDocs ExternalDocs { get; set; }
611+
public Microsoft.OpenApi.Models.OpenApiComponents? Components { get; set; }
612+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension>? Extensions { get; set; }
613+
public Microsoft.OpenApi.Models.OpenApiExternalDocs? ExternalDocs { get; set; }
614614
public string HashCode { get; }
615-
public Microsoft.OpenApi.Models.OpenApiInfo Info { get; set; }
616-
public string JsonSchemaDialect { get; set; }
617-
public Microsoft.OpenApi.Models.OpenApiPaths Paths { get; set; }
618-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiSecurityRequirement> SecurityRequirements { get; set; }
619-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiServer> Servers { get; set; }
620-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiTag> Tags { get; set; }
621-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiPathItem> Webhooks { get; set; }
622-
public Microsoft.OpenApi.Services.OpenApiWorkspace Workspace { get; set; }
623-
public Json.Schema.JsonSchema FindSubschema(Json.Pointer.JsonPointer pointer, Json.Schema.EvaluationOptions options) { }
624-
public Json.Schema.JsonSchema ResolveJsonSchemaReference(System.Uri referenceUri) { }
625-
public Microsoft.OpenApi.Interfaces.IOpenApiReferenceable ResolveReference(Microsoft.OpenApi.Models.OpenApiReference reference) { }
615+
public Microsoft.OpenApi.Models.OpenApiInfo? Info { get; set; }
616+
public string? JsonSchemaDialect { get; set; }
617+
public Microsoft.OpenApi.Models.OpenApiPaths? Paths { get; set; }
618+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiSecurityRequirement>? SecurityRequirements { get; set; }
619+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiServer>? Servers { get; set; }
620+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiTag>? Tags { get; set; }
621+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiPathItem>? Webhooks { get; set; }
622+
public Microsoft.OpenApi.Services.OpenApiWorkspace? Workspace { get; set; }
623+
public Json.Schema.JsonSchema? FindSubschema(Json.Pointer.JsonPointer pointer, Json.Schema.EvaluationOptions options) { }
624+
public Json.Schema.JsonSchema? ResolveJsonSchemaReference(System.Uri referenceUri) { }
625+
public Microsoft.OpenApi.Interfaces.IOpenApiReferenceable? ResolveReference(Microsoft.OpenApi.Models.OpenApiReference reference) { }
626626
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
627627
public void SerializeAsV3(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
628628
public void SerializeAsV31(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
629629
public void SetReferenceHostDocument() { }
630630
public static string GenerateHashValue(Microsoft.OpenApi.Models.OpenApiDocument doc) { }
631-
public static Microsoft.OpenApi.Reader.ReadResult Load(string url, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null) { }
632-
public static Microsoft.OpenApi.Reader.ReadResult Load(System.IO.Stream stream, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null) { }
633-
public static Microsoft.OpenApi.Reader.ReadResult Load(System.IO.TextReader input, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null) { }
634-
public static System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> LoadAsync(string url, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null) { }
635-
public static System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> LoadAsync(System.IO.TextReader input, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null) { }
636-
public static System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> LoadAsync(System.IO.Stream stream, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null, System.Threading.CancellationToken cancellationToken = default) { }
637-
public static Microsoft.OpenApi.Reader.ReadResult Parse(string input, string format = null, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings = null) { }
631+
public static Microsoft.OpenApi.Reader.ReadResult Load(string url, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null) { }
632+
public static Microsoft.OpenApi.Reader.ReadResult Load(System.IO.Stream stream, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null) { }
633+
public static Microsoft.OpenApi.Reader.ReadResult Load(System.IO.TextReader input, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null) { }
634+
public static System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> LoadAsync(string url, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null) { }
635+
public static System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> LoadAsync(System.IO.TextReader input, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null) { }
636+
public static System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> LoadAsync(System.IO.Stream stream, string format, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null, System.Threading.CancellationToken cancellationToken = default) { }
637+
public static Microsoft.OpenApi.Reader.ReadResult Parse(string input, string? format = null, Microsoft.OpenApi.Reader.OpenApiReaderSettings? settings = null) { }
638638
}
639639
public class OpenApiEncoding : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
640640
{
@@ -775,12 +775,12 @@ namespace Microsoft.OpenApi.Models
775775
public class OpenApiMediaType : Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtensible, Microsoft.OpenApi.Interfaces.IOpenApiSerializable
776776
{
777777
public OpenApiMediaType() { }
778-
public OpenApiMediaType(Microsoft.OpenApi.Models.OpenApiMediaType mediaType) { }
779-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiEncoding> Encoding { get; set; }
780-
public Microsoft.OpenApi.Any.OpenApiAny Example { get; set; }
781-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiExample> Examples { get; set; }
782-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension> Extensions { get; set; }
783-
public virtual Json.Schema.JsonSchema Schema { get; set; }
778+
public OpenApiMediaType(Microsoft.OpenApi.Models.OpenApiMediaType? mediaType) { }
779+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiEncoding>? Encoding { get; set; }
780+
public Microsoft.OpenApi.Any.OpenApiAny? Example { get; set; }
781+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiExample>? Examples { get; set; }
782+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension>? Extensions { get; set; }
783+
public virtual Json.Schema.JsonSchema? Schema { get; set; }
784784
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
785785
public void SerializeAsV3(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
786786
public void SerializeAsV31(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
@@ -815,20 +815,20 @@ namespace Microsoft.OpenApi.Models
815815
{
816816
public const bool DeprecatedDefault = false;
817817
public OpenApiOperation() { }
818-
public OpenApiOperation(Microsoft.OpenApi.Models.OpenApiOperation operation) { }
819-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiCallback> Callbacks { get; set; }
818+
public OpenApiOperation(Microsoft.OpenApi.Models.OpenApiOperation? operation) { }
819+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.OpenApiCallback>? Callbacks { get; set; }
820820
public bool Deprecated { get; set; }
821-
public string Description { get; set; }
822-
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension> Extensions { get; set; }
823-
public Microsoft.OpenApi.Models.OpenApiExternalDocs ExternalDocs { get; set; }
824-
public string OperationId { get; set; }
825-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiParameter> Parameters { get; set; }
826-
public Microsoft.OpenApi.Models.OpenApiRequestBody RequestBody { get; set; }
827-
public Microsoft.OpenApi.Models.OpenApiResponses Responses { get; set; }
828-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiSecurityRequirement> Security { get; set; }
829-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiServer> Servers { get; set; }
830-
public string Summary { get; set; }
831-
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiTag> Tags { get; set; }
821+
public string? Description { get; set; }
822+
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension>? Extensions { get; set; }
823+
public Microsoft.OpenApi.Models.OpenApiExternalDocs? ExternalDocs { get; set; }
824+
public string? OperationId { get; set; }
825+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiParameter>? Parameters { get; set; }
826+
public Microsoft.OpenApi.Models.OpenApiRequestBody? RequestBody { get; set; }
827+
public Microsoft.OpenApi.Models.OpenApiResponses? Responses { get; set; }
828+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiSecurityRequirement>? Security { get; set; }
829+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiServer>? Servers { get; set; }
830+
public string? Summary { get; set; }
831+
public System.Collections.Generic.IList<Microsoft.OpenApi.Models.OpenApiTag>? Tags { get; set; }
832832
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
833833
public void SerializeAsV3(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
834834
public void SerializeAsV31(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
@@ -1495,7 +1495,7 @@ namespace Microsoft.OpenApi.Services
14951495
public bool Contains(string location) { }
14961496
public System.Uri GetDocumentId(string key) { }
14971497
public bool RegisterComponent<T>(string location, T component) { }
1498-
public T ResolveReference<T>(string location) { }
1498+
public T? ResolveReference<T>(string location) { }
14991499
}
15001500
public class OperationSearch : Microsoft.OpenApi.Services.OpenApiVisitorBase
15011501
{
@@ -1827,7 +1827,7 @@ namespace Microsoft.OpenApi.Writers
18271827
where T : Microsoft.OpenApi.Interfaces.IOpenApiElement { }
18281828
public static void WriteOptionalMap<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, System.Collections.Generic.IDictionary<string, T> elements, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, string, T> action)
18291829
where T : Microsoft.OpenApi.Interfaces.IOpenApiElement { }
1830-
public static void WriteOptionalObject<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, T value, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, T> action) { }
1830+
public static void WriteOptionalObject<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, T? value, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, T> action) { }
18311831
public static void WriteProperty(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, string value) { }
18321832
public static void WriteProperty(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, bool value, bool defaultValue = false) { }
18331833
public static void WriteProperty(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, bool? value, bool defaultValue = false) { }
@@ -1840,7 +1840,7 @@ namespace Microsoft.OpenApi.Writers
18401840
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) { }
18411841
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)
18421842
where T : Microsoft.OpenApi.Interfaces.IOpenApiElement { }
1843-
public static void WriteRequiredObject<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, T value, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, T> action) { }
1843+
public static void WriteRequiredObject<T>(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, T? value, System.Action<Microsoft.OpenApi.Writers.IOpenApiWriter, T> action) { }
18441844
public static void WriteRequiredProperty(this Microsoft.OpenApi.Writers.IOpenApiWriter writer, string name, string value) { }
18451845
}
18461846
public class OpenApiWriterSettings

0 commit comments

Comments
 (0)