DefaultValueAttribute swagger 2.3.0 doesn't work
See original GitHub issuei 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; }
click on model show defaultValue but click on ExampleValue don’t show!!

Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can you provide an API definition that reproduces your problem?
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!