Skip to content

Commit

Permalink
Adding YAML support to Autorest.
Browse files Browse the repository at this point in the history
  • Loading branch information
fearthecowboy committed May 26, 2016
1 parent 73987f0 commit f233c04
Show file tree
Hide file tree
Showing 15 changed files with 15,437 additions and 2 deletions.
1 change: 1 addition & 0 deletions AutoRest/AutoRest.Core/AutoRest.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
<file src="binaries/net45/AutoRest.Modeler.Swagger.dll" target="tools" />
<file src="binaries/net45/AutoRest.Modeler.CompositeSwagger.dll" target="tools" />
<file src="binaries/net45/Newtonsoft.Json.dll" target="tools" />
<file src="binaries/net45/YamlDotNet.dll" target="tools" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public static void Web()
RunSwaggerTest("web.json", "Web");
}

[Fact]
public static void WebYaml()
{
// same test as Web(), but converted to YAML
RunSwaggerTest("web.yaml", "Web");
}

private static void RunSwaggerTest(string swaggerFileName, string expectedFolderName)
{
SwaggerSpecHelper.RunTests<AzureResourceSchemaCodeGenerator>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
<Content Include="Swagger\web.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Swagger\web.yaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Modelers\Swagger.Tests\AutoRest.Modeler.Swagger.Tests.csproj">
Expand Down
Loading

0 comments on commit f233c04

Please sign in to comment.