title: OpenAPI throws Could not resolve reference: Could not resolve pointer: for @ExampleObject files
body: <p>I am developing a Quarkus service-based application for which I am adding <code>open API</code> based annotations such as <code>@ExampleObject</code>. For this, I would like to add the resources file contents as an example that can appear in the <code>SwaggerUI</code>.</p>
  <p>I am getting the following error when I add the reference to the files from the resources folder:</p>
  <pre><code>Errors
   
  Resolver error at paths./api/generateTestData.post.requestBody.content.application/json.examples.Example1 Schema.$ref
  Could not resolve reference: Could not resolve pointer: /Example1.json does not exist in document
  
  Resolver error at paths./api/generateTestData.post.requestBody.content.application/json.examples.Example2 Schema.$ref
  Could not resolve reference: Could not resolve pointer: /Example2.json does not exist in document
  </code></pre>
  <p>Following is my <code>Quarkus based Java code</code>:</p>
  <pre><code>@RequestBody(description = &quot;InputTemplate body&quot;,
          content = @Content(schema = @Schema(implementation = InputTemplate.class), examples = {
                  @ExampleObject(name = &quot;Example-1&quot;,
                          description = &quot;Example-1 for InputTemplate.&quot;,
                          ref = &quot;#/resources/Example1.json&quot;), externalValue = &quot;#/resources/Example2.json&quot;
                  @ExampleObject(name = &quot;Example-2&quot;,
                          description = &quot;Example-2 for InputTemplate.&quot;,
                          ref = &quot;#/resources/Example1.json&quot;) //externalValue = &quot;#/resources/Example1.json&quot;
          }))
  </code></pre>
  <p>Note:
  I am able to add the <code>String</code> as <code>value</code> but the content for these examples is very large so I would like to read from the files only so trying this approach.</p>
  <p>Is there any way I can access the resources file and add it as a <code>ref</code> within my <code>@ExampleObject</code></p>