Не уверен, что это еще одна проблема Subresouce в Quarkus. Я получил работу с дополнительными ресурсами в Quarkus с помощью ответа на этот вопрос < / а>.
Но когда я включаю поддержку OpenAPI в этом проекте. CommentResource (подресурс PostResource
) не создается в схеме OpenAPI.
curl http://localhost:8080/openapi
curl http://localhost:8080/openapi
---
openapi: 3.0.1
info:
title: Generated API
version: "1.0"
paths:
/hello:
get:
responses:
200:
description: OK
content:
text/plain:
schema:
$ref: '#/components/schemas/String'
/hello/async:
get:
responses:
200:
description: OK
content:
text/plain:
schema:
type: string
/hello/greeting/{name}:
get:
parameters:
- name: name
in: path
required: true
schema:
$ref: '#/components/schemas/String'
responses:
200:
description: OK
content:
text/plain:
schema:
$ref: '#/components/schemas/String'
/posts:
get:
responses:
200:
description: OK
content:
application/json: {}
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Post'
responses:
200:
description: OK
content:
'*/*': {}
/posts/{id}:
get:
parameters:
- name: id
in: path
required: true
schema:
$ref: '#/components/schemas/String'
responses:
200:
description: OK
content:
application/json: {}
put:
parameters:
- name: id
in: path
required: true
schema:
$ref: '#/components/schemas/String'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Post'
responses:
200:
description: OK
content:
'*/*': {}
delete:
parameters:
- name: id
in: path
required: true
schema:
$ref: '#/components/schemas/String'
responses:
200:
description: OK
content:
'*/*': {}
components:
schemas:
String:
type: string
Post:
type: object
properties:
content:
type: string
createdAt:
format: date-time
type: string
id:
type: string
title:
type: string