Search code examples
spring-bootyamlspring-cloudopenapispring-cloud-contract

Is there a way to convert an OpenAPI specification to a spring cloud contract?


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?


Solution

  • 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/