Skip to content

Property or indexer 'IOpenApiMediaType.Example' cannot be assigned to -- it is read only #2582

Description

@rdeveen

Describe the bug
Just a simple .NET API with OpenAPI support and generation of Open API Specification. Was working on the 2.3.9 version but now refused to build on the 3.0.0 version.

C:\Sources\api\src\Api\obj\Debug\net10.0\Microsoft.AspNetCore.OpenApi.SourceGenerators\Microsoft.AspNetCore.OpenApi.SourceGenerators.XmlCommentGenerator\OpenApiXmlCommentSupport.generated.cs(460,41,460,58): error CS0200: Property or indexer 'IOpenApiMediaType.Example' cannot be assigned to -- it is read only

OpenApi File To Reproduce
None has been generated.

Expected behavior

Screenshots/Code Snippets

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions