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.

DefaultValueAttribute swagger 2.3.0 doesn't work

See original GitHub issue

i use [defaultValue()] in ASP.net Core (.netStandard Library) to show in Swagger UI as Example Model With Default Data in previous version work correctly. but in version 2.3.0 don’t work. i don’t know why? please help me!

[DefaultValue("simpleSearch")]
public string SearchType { get; set; }

image click on model show defaultValue but click on ExampleValue don’t show!!

image

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
heldersepucommented, Mar 26, 2018

Can you provide an API definition that reproduces your problem?

0reactions
lock[bot]commented, Jul 2, 2019

Locking due to inactivity.

This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.

If you think you’re experiencing something similar to what you’ve found here: please open a new issue, follow the template, and reference this issue in your report.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

swagger_dart_code_generator 2.3.0 | Dart Package - Pub.dev
SwaggerDartCodeGenerator is a code generator that looks for *.swagger files and builds .swagger.dart files, based on the schema. Code generation based on ...
Read more >
c# - Swagger default value for parameter - Stack Overflow
I would like to be it optional and indicate to client the default value (not sure if swagger supports this). I don't like...
Read more >
DefaultValueAttribute Class (System.ComponentModel)
A DefaultValueAttribute will not cause a member to be automatically initialized with the attribute's value. You must set the initial value in your...
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