Skip to content

[Bug]: http-server-csharp: tsp compile fails with error: Visibility of property 'name' is sealed and cannot be changed. #11452

Description

Describe the bug

Full error message:

node_modules/@azure-tools/typespec-azure-resource-manager/lib/models.tsp:88:1 - error visibility-sealed: Visibility of property 'name' is sealed and cannot be changed.
> 88 | @armResourceInternal(Properties)

Reproduction

  1. Use an ARM RP typespec
  2. Add the following to tspconfig.yaml
emit:
  - "@typespec/http-server-csharp"
options:
  "@typespec/http-server-csharp":
    emitter-output-dir: "{project-root}/generated/{emitter-name}"
    output-type: all
    emit-mocks: none
    overwrite: true

Checklist

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions