Open Sandido opened 5 months ago
@Sandido: Should this be generalized to "Swagger descriptions should be plain-text"? I'm not sure there's an exact definition of what is or isn't "plain-text", but we can try to disallow common mistakes like:
Adding a rule specifically for <br>
seems too narrow.
@Sandido: Should this be generalized to "Swagger descriptions should be plain-text"? I'm not sure there's an exact definition of what is or isn't "plain-text", but we can try to disallow common mistakes like:
- HTML tags
- Markdown formatting
- URLs? Allow or deny?
Adding a rule specifically for
<br>
seems too narrow.
@Sandido: Ping
@mikeharder , Urls seem to work fine: https://learn.microsoft.com/en-us/dotnet/api/azure.resourcemanager.compute.models.virtualmachinehardwareprofile?view=azure-dotnet#properties
Html formatting is an issue as seen with the < b r >.
Based on the email thread I shared, I don't think markdown formatting is supported but haven't seen specific instances of this so I can't give a recommendation on that.
Lint rule description
<br>
cannot be processed by upstream Autorest and SDK doc generators and is therefore not allowed.Related swagger example
Category
SDK
Severity level
Error
Applies to
Management plane API spec
How to fix the violation
Remove the
<br>
tags and format your text as plain text.What't the impact if breaking the rule
The
<br>
tags will appear as plain text on all documentation and code upstream of the swagger specs (SDK, client tools). This is confusing to customers and degrades the development experience.