Skip to content

Commit 284fc64

Browse files
committed
clean up test and update public API
1 parent fdb1fbf commit 284fc64

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/Microsoft.OpenApi.Tests/Models/OpenApiInfoTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public static IEnumerable<object[]> AdvanceInfoJsonExpect()
110110
specVersion,
111111
@"{
112112
""title"": ""Sample Pet Store App"",
113-
""summary"": ""This is a sample server for a pet store."",
114113
""description"": ""This is a sample server for a pet store."",
115114
""termsOfService"": ""http://example.com/terms/"",
116115
""contact"": {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/Microsoft/OpenAPI.NET")]
22
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Microsoft.OpenApi.Readers.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100957cb48387b2a5f54f5ce39255f18f26d32a39990db27cf48737afc6bc62759ba996b8a2bfb675d4e39f3d06ecb55a178b1b4031dcb2a767e29977d88cce864a0d16bfc1b3bebb0edf9fe285f10fffc0a85f93d664fa05af07faa3aad2e545182dbf787e3fd32b56aca95df1a3c4e75dec164a3f1a4c653d971b01ffc39eb3c4")]
33
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Microsoft.OpenApi.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100957cb48387b2a5f54f5ce39255f18f26d32a39990db27cf48737afc6bc62759ba996b8a2bfb675d4e39f3d06ecb55a178b1b4031dcb2a767e29977d88cce864a0d16bfc1b3bebb0edf9fe285f10fffc0a85f93d664fa05af07faa3aad2e545182dbf787e3fd32b56aca95df1a3c4e75dec164a3f1a4c653d971b01ffc39eb3c4")]
4-
[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName="")]
4+
[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName=".NET Standard 2.0")]
55
namespace Microsoft.OpenApi.Any
66
{
77
public enum AnyType
@@ -424,6 +424,7 @@ namespace Microsoft.OpenApi.Models
424424
public const string Head = "head";
425425
public const string Headers = "headers";
426426
public const string Host = "host";
427+
public const string Identifier = "identifier";
427428
public const string Implicit = "implicit";
428429
public const string In = "in";
429430
public const string Info = "info";
@@ -644,6 +645,7 @@ namespace Microsoft.OpenApi.Models
644645
public OpenApiLicense() { }
645646
public OpenApiLicense(Microsoft.OpenApi.Models.OpenApiLicense license) { }
646647
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension> Extensions { get; set; }
648+
public string Identifier { get; set; }
647649
public string Name { get; set; }
648650
public System.Uri Url { get; set; }
649651
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
@@ -780,13 +782,15 @@ namespace Microsoft.OpenApi.Models
780782
{
781783
public OpenApiReference() { }
782784
public OpenApiReference(Microsoft.OpenApi.Models.OpenApiReference reference) { }
785+
public string Description { get; set; }
783786
public string ExternalResource { get; set; }
784787
public Microsoft.OpenApi.Models.OpenApiDocument HostDocument { get; set; }
785788
public string Id { get; set; }
786789
public bool IsExternal { get; }
787790
public bool IsLocal { get; }
788791
public string ReferenceV2 { get; }
789792
public string ReferenceV3 { get; }
793+
public string Summary { get; set; }
790794
public Microsoft.OpenApi.Models.ReferenceType? Type { get; set; }
791795
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
792796
public void SerializeAsV3(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }

0 commit comments

Comments
 (0)