Skip to content

AutoRest throws when profile parameters in content type #5132

@rossgrambo

Description

@rossgrambo

Before filling a bug

  • [Y] have you checked the faq for known issues.
  • [Y] have you checked existing issues

AutoRest C# appears to not handle profile parameters in content type. Profile is valid since RFC6906

[.Net] System.NotSupportedException: Content type application/json;profile="https://azconfig.io/mime-profiles/feature-management/ff"​;charset=utf-8 is not supported. The unsupported member type is located on type 'AutoRest.CSharp.Common.Input.InputNamespace'. Path: $ | LineNumber: 22680 | BytePositionInLine: 15.

Expected behavior
No error is thrown and application/json is used if the profile isn't resolved.

Additional context
This is happening in builds from https://github.com/Azure/azure-rest-api-specs-pr/pull/21305. Can link a specific build if it's valuable.

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