Skip to content

Generated Docs have disallowed docfx syntax. #928

@georgend

Description

@georgend

According to to DocFx Contributor Guide, the autorest.powershell docs generator is generating content that is considered as disallowed html tags.
Example Build Report:-

For Example:-

Get1

Get-MgDeviceXXXX-OutFile <String>
 -BodyParameter <SomeProperty>
 [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

<SomeProperty> is considered a disallowed html tag.
It should be \<SomeProperty\> where the angle brackets are escaped.

The responsible code is located here:-

var type = ParameterType != typeof(SwitchParameter) ? $" <{ParameterType.ToSyntaxTypeName()}>" : String.Empty;

<{ParameterType.ToSyntaxTypeName()}> should be escaped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions