question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@example value get ignored when there is more than one word

See original GitHub issue

I’m submitting a…


[ ] Regression 
[x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

When I set this in dto file, swagger docs prints string

/**
   * Error message
   * @example 'Bad Request'
   */

But when I change it to 'BadRequest' it is ok. Also in array type:

/**
   * List of error messages
   * @example ["email must be an email"]
   */
  message: Array<string>;

Expected behavior

To print the full string sentence instead of string word.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilmysliwieccommented, Dec 17, 2020

Thanks for reporting. Just fixed. Please, install the latest version

0reactions
vahidvdncommented, Dec 16, 2020

@kamilmysliwiec Sorry, this issue is still there in array type. For example:

/**
   * List of error messages
   * @example ['property test should not exist']
   */
  message: Array<string>;

It shows string instead of property test should not exist

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use 'if' to condition and ignore a word in a particular ...
Why bother with contains first? Just do: String item = "This is just a Text"; System.out.println(item.replace("Text", "")); If it doesn't ...
Read more >
Synonyms of ignore - Merriam-Webster Thesaurus
Synonyms for IGNORE: forget, disregard, neglect, overlook, miss, reject, bypass, omit; ... one can't ignore the fact that it seriously distorts history.
Read more >
How to Grep for Multiple Strings, Patterns or Words
Use grep to search for multiple patterns or words in a file by following examples in this guide. The grep tool is one...
Read more >
ALL function (DAX) - Microsoft Learn
Returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This...
Read more >
Excel: If cell contains formula examples - Ablebits
If a cell contains at least one of the specified substrings, there will be TRUE in the array. The double unary operator (--)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found