diff --git a/specification/apicenter/ApiCenter.DataApi/models/api.tsp b/specification/apicenter/ApiCenter.DataApi/models/api.tsp index a4819304b421..1ffae274acd3 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/api.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/api.tsp @@ -13,10 +13,10 @@ model PagedApiAll { @parentResource(Workspace) @resource("apis") model Api { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning" @doc("Api identifier.") @maxLength(50) @key("apiName") - @visibility name: string; @doc("The name of the API.") diff --git a/specification/apicenter/ApiCenter.DataApi/models/apiDefinition.tsp b/specification/apicenter/ApiCenter.DataApi/models/apiDefinition.tsp index 521bb8499db4..5bda4c1edb05 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/apiDefinition.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/apiDefinition.tsp @@ -6,9 +6,9 @@ using TypeSpec.Rest; @resource("definitions") @parentResource(ApiVersion) model ApiDefinition { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning" @doc("Definition identifier.") @key("definitionName") - @visibility @maxLength(50) name: string; diff --git a/specification/apicenter/ApiCenter.DataApi/models/apiVersion.tsp b/specification/apicenter/ApiCenter.DataApi/models/apiVersion.tsp index 057575a0accd..e308a1183665 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/apiVersion.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/apiVersion.tsp @@ -8,9 +8,9 @@ using TypeSpec.Rest; @resource("versions") @parentResource(Api) model ApiVersion { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning" @doc("Version identifier.") @key("versionName") - @visibility @maxLength(50) name: string; diff --git a/specification/apicenter/ApiCenter.DataApi/models/deployment.tsp b/specification/apicenter/ApiCenter.DataApi/models/deployment.tsp index a8a0e4b4f92b..5a23e0ddfb2a 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/deployment.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/deployment.tsp @@ -6,9 +6,9 @@ using TypeSpec.Rest; @resource("deployments") @parentResource(Api) model ApiDeployment { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning" @doc("Deployment identifier.") @key("deploymentName") - @visibility @maxLength(50) name: string; diff --git a/specification/apicenter/ApiCenter.DataApi/models/environment.tsp b/specification/apicenter/ApiCenter.DataApi/models/environment.tsp index e57fab3ad573..93a4bb3e4fb2 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/environment.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/environment.tsp @@ -13,9 +13,9 @@ model PagedEnvironmentAll { @resource("environments") @parentResource(Workspace) model Environment { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning" @doc("Environment identifier.") @key("environmentName") - @visibility @maxLength(50) name: string; diff --git a/specification/apicenter/ApiCenter.DataApi/models/workspace.tsp b/specification/apicenter/ApiCenter.DataApi/models/workspace.tsp index 60c60d4f3939..94784f3c432d 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/workspace.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/workspace.tsp @@ -7,10 +7,10 @@ using TypeSpec.Rest; @doc("Workspace resource model.") @resource("workspaces") model Workspace { + #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "FIXME: misused @visibility to get around this warning" @doc("Workspace identifier.") @maxLength(50) @key("workspaceName") - @visibility name: string; @doc("Workspace title, e.g. 'My workspace'.")