Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[http-server-csharp] multi-line comments aren't handled well by model generation #5465

Open
4 tasks done
jovinson-ms opened this issue Dec 30, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working needs-area

Comments

@jovinson-ms
Copy link

Describe the bug

Given a TypeSpec model like:

  @maxLength(16)
  @minLength(1)
  @doc("""
    Format of the redacted output. Only valid when Operation is Redact. 
    Please refer to https://learn.microsoft.com/en-us/azure/healthcare-apis/deidentification/redaction-format for more details.
    """)
  redactionFormat?: string;

the generated model looks like:

        ///<summary>
        /// Format of the redacted output. Only valid when Operation is Redact.  Please
        /// Format of the redacted outpu
        /// Format of the redacted output. Only valid when Operation is Redact.  P
        /// ils.
        ///</summary>
        [TypeSpec.Helpers.JsonConverters.StringConstraint(MinLength = 1, MaxLength = 16)]
        public string RedactionFormat { get; set; }

Reproduction

Can't be reproduced in Playground

Checklist

@jovinson-ms jovinson-ms added the bug Something isn't working label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
Development

No branches or pull requests

1 participant