Skip to content

Commit

Permalink
Merge pull request Azure#1096 from fearthecowboy/add-yaml-support
Browse files Browse the repository at this point in the history
Adding YAML support to Autorest.
  • Loading branch information
tbombach committed May 26, 2016
2 parents ab5315f + f233c04 commit f427898
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

0 comments on commit f427898

Please sign in to comment.