diff --git a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/CHANGELOG b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/CHANGELOG index 6d99da258ef..b85b9a554be 100644 --- a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/CHANGELOG +++ b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/CHANGELOG @@ -1,5 +1,8 @@ # Release History +## 1.0.9 (5-22-2023) ++ Support schema for parameters referenced in relative files + ## 1.0.8 (3-1-2023) + Skip any invalid swagger file path when generating API review diff --git a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerAPIViewGenerator.cs b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerAPIViewGenerator.cs index 134037737b8..62c157ab6be 100644 --- a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerAPIViewGenerator.cs +++ b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerAPIViewGenerator.cs @@ -90,7 +90,7 @@ public static async Task GenerateSwaggerApiView(SwaggerSpec var referenceSwaggerSpec = await SwaggerDeserializer.Deserialize(referenceSwaggerFilePath); referenceSwaggerSpec.swaggerFilePath = Path.GetFullPath(referenceSwaggerFilePath); AddDefinitionsToCache(referenceSwaggerSpec, referenceSwaggerFilePath, schemaCache); - param = schemaCache.GetParameterFromCache(parameter.Ref, referenceSwaggerFilePath); + param = schemaCache.GetParameterFromCache(parameter.Ref, currentSwaggerFilePath); } else { diff --git a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerApiParser.csproj b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerApiParser.csproj index 78d291a3ec9..958dac04484 100644 --- a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerApiParser.csproj +++ b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/SwaggerApiParser.csproj @@ -6,7 +6,7 @@ swaggerAPIParser net6.0 swagger_api_parser - 1.0.8 + 1.0.9 Azure.Sdk.Tools.SwaggerApiParser True $(OfficialBuildId)