Код: Выделить всё
title: Myapi
x-stoplight:
type: object
x-internal: false
properties:
id:
type: string
x-stoplight:
id: env6e1e1evebr
readOnly: true
model2:
$ref: 'https://path/common/models/Model_1.v1.yaml?deref=bundle'
[ОШИБКА] невозможно прочитать
javax.net.ssl.SSLHandshakeException: не удалось построить путь PKIX: sun.security.provider.certpath.SunCertPathBuilderException: невозможно найти действительный путь сертификации к запрошенной цели
в sun.security.ssl.Alert.createSSLException (Alert.java:131)
После этого я попытался использовать путь к необработанным данным в репозитории нужной мне модели
Код: Выделить всё
model2: $ref: 'https://path/ccommon/models/Model_1.v1.yaml#master'
Or using the credential
model2: $ref: 'https://${AR_USER}:${AR_PASSWORD}path/ccommon/models/Model_1.v1.yaml#master'
-[ ОШИБКА] невозможно прочитатьjava.io.IOException: сервер вернул код ответа HTTP: 401 для URL-адреса: https://path/ccommon/models/Model_1.v1.yaml#master at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0 (собственный метод) в jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:77) в jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45) в java.lang.reflect.Constructor.newInstanceWithCaller (Constructor.java:500) в java.lang.reflect.Constructor.newInstance (Constructor.java:481)
< /blockquote>
здесь мой плагин конфигурации openapi
Код: Выделить всё
org.openapitools
openapi-generator-maven-plugin
7.10.0
jaxrs-spec
false
${project.basedir}/reference/myApi.yaml
package.dto
src
path.api
true
java8-localdatetime
true
true
true
true
true
generate-api
generate
Подробнее здесь: https://stackoverflow.com/questions/793 ... rl-in-yaml