Skip to content

Commit

Permalink
Push suppression for badly written spec
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Mar 7, 2025
1 parent f022957 commit 72f9c15
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion specification/apicenter/ApiCenter.DataApi/models/api.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'.")
Expand Down

0 comments on commit 72f9c15

Please sign in to comment.