title: Different examples based on inheritance with Open API 3
body: <p>I want to make different examples in Swagger for parent attributes.
  Is there any simple way to achieve this one?</p>
  <pre><code>class Link {
      @Schema(description = &quot;Next link&quot;, example = &quot;http://&quot;)
      private String next;
      @Schema(description = &quot;Previous link&quot;, example = &quot;http://&quot;)
      private String previous;
  }
  class Sample&lt;T&gt; {
      private List&lt;T&gt; items;
      private Link _href;
  }
  class SampleA extends Sample&lt;A&gt; {}
  class SampleB extends Sample&lt;B&gt; {}
  </code></pre>
  <p>example of SampleA are</p>
  <ul>
  <li>next: abc.com</li>
  <li>previous: abc.com?page=2</li>
  </ul>
  <p>example of SampleB are</p>
  <ul>
  <li>next: xyz.com</li>
  <li>previous: xyz.com?page=2</li>
  </ul>