在Swagger中使用JSON和YAML有什么实际区别? [英] What is the practical different between the usage of JSON and YAML in Swagger?
本文介绍了在Swagger中使用JSON和YAML有什么实际区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎JSON包含路径信息和http请求动词,而YAML似乎仅定义了一个树结构.
It appears that JSON includes the path information and http request verb, whereas YAML seems to just definition a tree structure alone.
它们之间有什么区别?还是我在这里混淆了不同的概念/层次结构?新手大张旗鼓,刚刚开始学习.
What is the difference between them? Or am I mixing up different concepts/hierarchies here? newbie to swagger, just started learning.
如果YAML是JSON的超集,那么该超集具体要添加到这里-是URL路径和HTTP动词吗?添加example
也是YAML添加到Swagger的JSON吗?
If YAML is a superset of JSON what specifically is the superset adding here - is it URL paths and HTTP verbs ? Is adding an example
also something that YAML adds to JSON for Swagger ?
推荐答案
查看全文