diff --git a/src/dotnet/OpenAPI.Validator.Tests/Resource/OpenAPI/Validation/body-top-level-properties.json b/src/dotnet/OpenAPI.Validator.Tests/Resource/OpenAPI/Validation/body-top-level-properties.json index e7cbcf1d1..e83430e4f 100644 --- a/src/dotnet/OpenAPI.Validator.Tests/Resource/OpenAPI/Validation/body-top-level-properties.json +++ b/src/dotnet/OpenAPI.Validator.Tests/Resource/OpenAPI/Validation/body-top-level-properties.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "Top level properties allowed for models allOf Resource in body parameters are name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity.", + "title": "Top level properties allowed for models allOf Resource in body parameters are name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity, zones.", "description": "Some documentation.", "version": "2017-02-08" }, diff --git a/src/dotnet/OpenAPI.Validator/Properties/Resources.Designer.cs b/src/dotnet/OpenAPI.Validator/Properties/Resources.Designer.cs index c4d348bca..76867be0d 100644 --- a/src/dotnet/OpenAPI.Validator/Properties/Resources.Designer.cs +++ b/src/dotnet/OpenAPI.Validator/Properties/Resources.Designer.cs @@ -62,7 +62,7 @@ internal Resources() { } /// - /// Looks up a localized string similar to Top level properties should be one of name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity. Model definition '{0}' has extra properties ['{1}'].. + /// Looks up a localized string similar to Top level properties should be one of name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity, zones. Model definition '{0}' has extra properties ['{1}'].. /// internal static string AllowedTopLevelProperties { get { diff --git a/src/dotnet/OpenAPI.Validator/Properties/Resources.resx b/src/dotnet/OpenAPI.Validator/Properties/Resources.resx index 3b5df333b..68e5033f9 100644 --- a/src/dotnet/OpenAPI.Validator/Properties/Resources.resx +++ b/src/dotnet/OpenAPI.Validator/Properties/Resources.resx @@ -223,7 +223,7 @@ Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: {0} - Top level properties should be one of name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity. Model definition '{0}' has extra properties ['{1}']. + Top level properties should be one of name, type, id, location, properties, tags, plan, sku, etag, managedBy, identity, zones. Model definition '{0}' has extra properties ['{1}']. Tracked resource '{0}' must have a get operation. diff --git a/src/dotnet/OpenAPI.Validator/Validation/BodyTopLevelProperties.cs b/src/dotnet/OpenAPI.Validator/Validation/BodyTopLevelProperties.cs index 16874a395..60223b968 100644 --- a/src/dotnet/OpenAPI.Validator/Validation/BodyTopLevelProperties.cs +++ b/src/dotnet/OpenAPI.Validator/Validation/BodyTopLevelProperties.cs @@ -16,7 +16,7 @@ public class BodyTopLevelProperties : TypedRule> private static readonly IEnumerable AllowedTopLevelProperties = new List() { "name", "type", "id", "location", "properties", "tags", "plan", "sku", "etag", - "managedBy", "identity", "kind"}; + "managedBy", "identity", "kind", "zones"}; /// /// Id of the Rule.