diff --git a/src/dotnet/APIView/APIViewWeb/Languages/SwiftLanguageService.cs b/src/dotnet/APIView/APIViewWeb/Languages/SwiftLanguageService.cs index 100fa859208..03d62f4051b 100644 --- a/src/dotnet/APIView/APIViewWeb/Languages/SwiftLanguageService.cs +++ b/src/dotnet/APIView/APIViewWeb/Languages/SwiftLanguageService.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.Extensions.Configuration; @@ -8,6 +8,7 @@ namespace APIViewWeb public class SwiftLanguageService : JsonLanguageService { public override string Name { get; } = "Swift"; + public string VersionString { get; } = "0.3.0"; //Swift doesn't have any parser for now //It will upload a json file with name Swift so Swift reviews are listed under that filter type @@ -19,8 +20,18 @@ public SwiftLanguageService(IConfiguration configuration) public override bool IsSupportedFile(string name) { // Skip initial processing so this service won't be selected for LLC when json is uploaded - // This is only a temporary solution for POC and will be remvoed once autorest yaml is uploaded instead of json for LLC + // This is only a temporary solution for POC and will be removed once autorest yaml is uploaded instead of json for LLC return false; } + + public override bool CanUpdate(string versionString) + { + return false; + } + + public override bool CanConvert(string versionString) + { + return versionString != VersionString; + } } -} \ No newline at end of file +} diff --git a/src/dotnet/APIView/APIViewWeb/Languages/TypeSpecLanguageService.cs b/src/dotnet/APIView/APIViewWeb/Languages/TypeSpecLanguageService.cs index 983ba0ef205..98d1ad432d0 100644 --- a/src/dotnet/APIView/APIViewWeb/Languages/TypeSpecLanguageService.cs +++ b/src/dotnet/APIView/APIViewWeb/Languages/TypeSpecLanguageService.cs @@ -46,7 +46,7 @@ public override bool CanUpdate(string versionString) public override bool CanConvert(string versionString) { - return versionString != VersionString; + return false; } public override bool GeneratePipelineRunParams(APIRevisionGenerationPipelineParamModel param)