有没有办法将OpenAPI规范转换为Spring Cloud Contract? [英] Is there a way to convert an OpenAPI specification to a spring cloud contract?

查看:188
本文介绍了有没有办法将OpenAPI规范转换为Spring Cloud Contract?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将openAPI规范(以yaml编写)转换为Spring Cloud Contract YAML DSL.是否有任何插件可以进行这种类型的转换?

I'm trying to convert an openAPI specification (written in yaml) into a spring cloud contract YAML DSL. Is there any plugin that could do this type of conversion?

推荐答案

可以.请阅读此博客文章,了解如何将yaml合同纳入openapi规范 https://springframework.guru/defining-spring-cloud-contracts-in-open-api/

Yes you can. Please read this blog post on how to encorporate the yaml contract inside the openapi spec https://springframework.guru/defining-spring-cloud-contracts-in-open-api/

这篇关于有没有办法将OpenAPI规范转换为Spring Cloud Contract?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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