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 property on operations does not work

See original GitHub issue
@ApiResponses(value = {
        @ApiResponse(code = 404, message = "Not Found",
                examples = @Example(
                        value = {
                                @ExampleProperty(
                                        mediaType = "Example json",
                                        value = "{\"invalidField\": \"address\"}"),
                                @ExampleProperty(
                                        mediaType = "Example string",
                                        value = "The first name was invalid")}),
response = Response.class)})

and the fields in Response class are annotated with @ApiModelProperty(required = true, example = "Timeout exceeded") then the example is also rendered. It’s kind of a workaround, but also not an option in my case, because I need to use class provided by library and I can’t annotate it.

_Originally posted by @tgielbutowicz in https://github.com/springfox/springfox/issues/2352#issuecomment-432225240_

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
sboursaultcommented, Aug 25, 2019

Same behaviour with 3.0.0-SNAPSHOT 😦

0reactions
prabhushrikantcommented, Jul 13, 2020

what are the plans for releasing 3.0.0-SNAPSHOT into a official release? Where can I track if it’s released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Properties of Operations – Mathematics for Elementary Teachers
Properties of Operations. So far, you have seen a couple of different models for the operations: addition, subtraction, multiplication, and division.
Read more >
Properties of Operations | MS GARCIA MATH - Edublogs
This property tells us that in some mathematical operations, it does not matter if the terms to operate are placed in one order...
Read more >
Properties of Operations: Multiplication - Mr Elementary Math
This property works closely with the commutative property because we often change the order of groupings of factors when multiplying numbers to make...
Read more >
Properties of Operations - YouTube
This video describes some of the common properties of operations. ... How To Use The Order of Operations (PEMDAS) – Example Problem.
Read more >
The Closure Property
closed under the · operation of division because when you divide one integer by another, you don't always get another integer as the...
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