apache / apache/servicecomb-java-chassis
同一个微服务不同shema文件的模型是否可以互相引用
Open
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 814
- Avg merge
- 8d 23h
- Merged PRs (30d)
- 1
Description
1、在schema schema-a 文件中定义如下模型
```
GpcsRet:
type: "object"
properties:
code:
type: "integer"
description: "返回码"
msg:
type: "string"
description: "返回描述"
```
2、是否可以在schema B 文件中如下引用
```
CommonRsp:
type: "object"
properties:
ret:
$ref: "schema-a.yaml#/definitions/GpcsRet"
````
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.