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.

Missing @Example annotation

See original GitHub issue

In the models section, there is a field called “example”. Currently it is equal to null for all fields in all classes:

image

There should be a way to specify this field. Also, I think if the field is not specified, it shouldn’t be presented in the models section.

This is an issue extracted from #12.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Wicparcommented, Mar 13, 2020

i will add such a mechanism as it is part of the standard. until then you can use the new branch with the reworked models. null fields are now filtered when you use OpenAPIModel.build() it will generate the appropriate hashmaps and remove empty and null values

0reactions
Wicparcommented, Mar 17, 2020

implementation 'com.github.papsign:Ktor-OpenAPI-Generator:0.2-beta.0-experimental'

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Difference Between Missing and Null Annotations
A missing annotation occurs when an image has objects that are not annotated when they should be. This is problematic as your model...
Read more >
How to manage missing and null image annotations - Isahit
Simply put, it is used to denote values that we do not know, while missing values occur when no data value is stored...
Read more >
Why Missing Annotations Don't Cause ClassNotFoundException
In this article, we saw how some annotations can be absent at runtime, even though they're part of the binary representation of a...
Read more >
Getting error "Missing statement for annotation" by passing the ...
I tried the above code and it is giving me the error : "Missing statement for annotation" in the scala class. I want...
Read more >
Missing Override annotation - CodeQL - GitHub
Java enables you to annotate methods that are intended to override a method in a superclass. Compilers are required to generate an error...
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