public OpenAPI read(Class<?> cls) {
        return read(cls, resolveApplicationPath(), null, false, null, null, new LinkedHashSet<String>(), new ArrayList<Parameter>(), new HashSet<Class<?>>());
    }
@Test(description = "Responses with array schema")
    public void testTicket2340() {
        Reader reader = new Reader(new OpenAPI());

        OpenAPI openAPI = reader.read(Ticket2340Resource.class);
        String yaml = "openapi: 3.0.1\n" +
                "paths:\n" +
                "  /test/test:\n" +
                "    post:\n" +
                "      operationId: getAnimal\n" +
                "      requestBody:\n" +
                "        content:\n" +
                "          application/json:\n" +
                "            schema:\n" +
                "              $ref: '#/components/schemas/Animal'\n" +
                "      responses:\n" +
                "        default:\n" +
                "          description: default response\n" +
                "          content:\n" +
                "            application/json:\n" +
                "              schema:\n" +
                "                type: string\n" +
                "components:\n" +
                "  schemas:\n" +
                "    Animal:\n" +
                "      required:\n" +
                "      - type\n" +
                "      type: object\n" +
                "      properties:\n" +
                "        type:\n" +
                "          type: string\n" +
                "      discriminator:\n" +
                "        propertyName: type\n" +
                "    Cat:\n" +
                "      type: object\n" +
                "      allOf:\n" +
                "      - $ref: '#/components/schemas/Animal'\n" +
                "      - type: object\n" +
                "        properties:\n" +
                "          lives:\n" +
                "            type: integer\n" +
                "            format: int32\n" +
                "    Dog:\n" +
                "      type: object\n" +
                "      allOf:\n" +
                "      - $ref: '#/components/schemas/Animal'\n" +
                "      - type: object\n" +
                "        properties:\n" +
                "          barkVolume:\n" +
                "            type: number\n" +
                "            format: double\n";
        SerializationMatchers.assertEqualsToYaml(openAPI, yaml);
    }