@@ -97,12 +97,7 @@ public record LanguageDependency : IOpenApiSerializable
9797{
9898 public string Name { get ; set ; } = string . Empty ;
9999 public string Version { get ; set ; } = string . Empty ;
100- [ JsonPropertyName ( "Type" ) ]
101- public DependencyType ? DependencyType
102- {
103- get ; set ;
104- }
105- private const string TypePropertyName = "type" ;
100+
106101 public void SerializeAsV2 ( IOpenApiWriter writer ) => SerializeAsV31 ( writer ) ;
107102 public void SerializeAsV3 ( IOpenApiWriter writer ) => SerializeAsV31 ( writer ) ;
108103 public void SerializeAsV31 ( IOpenApiWriter writer )
@@ -111,10 +106,6 @@ public void SerializeAsV31(IOpenApiWriter writer)
111106 writer . WriteStartObject ( ) ;
112107 writer . WriteProperty ( nameof ( Name ) . ToFirstCharacterLowerCase ( ) , Name ) ;
113108 writer . WriteProperty ( nameof ( Version ) . ToFirstCharacterLowerCase ( ) , Version ) ;
114- if ( DependencyType is not null )
115- {
116- writer . WriteProperty ( TypePropertyName , DependencyType . ToString ( ) ) ;
117- }
118109 writer . WriteEndObject ( ) ;
119110 }
120111 public static LanguageDependency Parse ( JsonNode source )
@@ -135,10 +126,6 @@ public static LanguageDependency Parse(JsonNode source)
135126 {
136127 extension . Version = versionValue ;
137128 }
138- if ( rawObject . TryGetPropertyValue ( TypePropertyName , out JsonNode ? typeNode ) && typeNode is JsonValue typeJsonValue && typeJsonValue . TryGetValue < string > ( out string ? typeValue ) && Enum . TryParse < DependencyType > ( typeValue , true , out DependencyType parsedTypeValue ) )
139- {
140- extension . DependencyType = parsedTypeValue ;
141- }
142129 return extension ;
143130 }
144131}
@@ -156,13 +143,3 @@ public enum SupportExperience
156143 Microsoft ,
157144 Community
158145}
159-
160- public enum DependencyType
161- {
162- Abstractions ,
163- Serialization ,
164- Authentication ,
165- Http ,
166- Bundle ,
167- Additional
168- }
0 commit comments