Я мигрирую свой API с Java 11 на Java 17, как часть этого я мигрировал Org.openapitools: OpenAPi-Generator-Maven-Plugin-зависимость из 5.4.0 T0 7.11.0. < /p>
Но когда я пытаюсь построить, встроенные, которые были созданы в предыдущей версии и не генерировали. Определение плагина: < /p>
org.openapitools
openapi-generator-maven-plugin
7.11.0
generate
internal
spring
spring-boot
${project.basedir}/doc/swagger/Test.yml
${project.build.directory}/generated-sources
test.model
test.api
true
true
false
false
false
true
true
true
ApiUtil.java
models
java17
true
true
< /code>
Вот спецификация API Open < /p>
openapi: 3.0.1
info:
title: Test
description: ''
version: '1'
servers:
- url: xxxxxxx
description: xxx
security: []
tags:
- name: Status Data
description: Status Data API
paths:
"/status":
post:
tags:
- Status Data
summary: ******
description: ******
operationId: ******
parameters:
- "$ref": "#/components/parameters/TraceHeader"
requestBody:
content:
application/json:
schema:
required:
- consumerInfo
- statusdetails
type: object
properties:
statusDetails:
"$ref": "#/components/schemas/StatusDetails"
consumerInfo:
"$ref": "#/components/schemas/ConsumerInformation"
description: ********
responses:
'400':
"$ref": "#/components/responses/400ErrorResponse"
'500':
"$ref": "#/components/responses/500ErrorResponse"
Подробнее здесь: https://stackoverflow.com/questions/797 ... in-openapi