Skip to content

Commit

Permalink
Getting baseline for dns schema generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed May 24, 2016
1 parent 80d8030 commit eb56294
Show file tree
Hide file tree
Showing 4 changed files with 1,370 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public static void Compute()
RunSwaggerTest("compute.json", "Compute");
}

[Fact]
public static void Dns()
{
RunSwaggerTest("dns.json", "DNS");
}

[Fact]
public static void Network()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
<Content Include="Expected\Web\Microsoft.CertificateRegistration.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Expected\DNS\Microsoft.DNS.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand All @@ -124,6 +127,9 @@
<Content Include="Swagger\web.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Swagger\dns.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Modelers\Swagger.Tests\AutoRest.Modeler.Swagger.Tests.csproj">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"id": "http://schema.management.azure.com/schemas/2016-04-01/Microsoft.Network.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Network",
"description": "Microsoft Network Resource Types",
"resourceDefinitions": {
"dnszones": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Microsoft.Network/dnszones"
]
},
"apiVersion": {
"type": "string",
"enum": [
"2016-04-01"
]
},
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the zone that is being updated, as received from a Get operation."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ZoneProperties"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the properties of the zone."
}
},
"required": [
"type",
"apiVersion",
"properties"
],
"description": "Microsoft.Network/dnszones"
}
},
"definitions": {
"ZoneProperties": {
"type": "object",
"properties": {
"maxNumberOfRecordSets": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the maximum number of record sets that can be created in this zone."
},
"numberOfRecordSets": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
}
],
"description": "Gets or sets the current number of record sets in this zone."
}
},
"description": "Represents the properties of the zone."
}
}
}
Loading

0 comments on commit eb56294

Please sign in to comment.