RAML-!包括奇怪的行为 [英] RAML- !include strange behavior

查看:164
本文介绍了RAML-!包括奇怪的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Atom的扩展来设计用RAML编写的API.

I use this extension for Atom, to design my API, written in RAML.

我想我在这里有问题:(我掩盖了标题和baseUri,对不起):

I think I have a problem here :(I masked title and baseUri, sorry) :

如果我遵循RAML 1.0规范,则应放置!include".奇怪的是,apiworkbench没有检测到错误.

If I follow RAML 1.0 specs, I should put a "!include". Strangely, apiworkbench detects no mistake.

如果我这样做:

为什么这个没用?

推荐答案

否,对于库,您不能使用include关键字.

No, for libraries you must NOT use the include keyword.

看来规范对此不是很清楚,或者至少在任何地方我都找不到明确的规范.因此,对此提出一个问题将是一个好主意.

It seems the specification is not very clear about this or at least I could not find it clearly specified anywhere. Thus raising an issue about this would be a good idea.

但是,如果您查看示例,您会看到在使用库(带有"uses"关键字)时,省略了!include".

But if you check the examples in the specification you will see that when using libraries (with the "uses" keyword) the "!include" is omitted.

这篇关于RAML-!包括奇怪的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆