根据 swagger 验证器,我为演示端点创建的 swagger 文件是有效的。不幸的是,当我尝试通过 swagger json 将 API 导入 GREG 时,我被告知有一个错误。无论我是导入文件还是通过URL访问它,都会发生故障。该消息几乎没用,堆栈跟踪粘贴在下面:
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add resource /_system/governance/apimgt/applicationdata/api-docs/0.0.1/api-docs.json. An exception occurred while executing handler chain. Some or all of the arguments may be null. Cannot add the endpoint to registry.
at org.wso2.carbon.registry.resource.services.utils.AddResourceUtil.addResource(AddResourceUtil.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
GREG 期望什么不是我创建的招摇定义的一部分?为什么会抛出错误?