Class DefaultAsyncApiSerializerService

java.lang.Object
io.github.springwolf.asyncapi.v3.jackson.DefaultAsyncApiSerializerService
All Implemented Interfaces:
AsyncApiSerializerService

public class DefaultAsyncApiSerializerService extends Object implements AsyncApiSerializerService
  • Constructor Details

    • DefaultAsyncApiSerializerService

      public DefaultAsyncApiSerializerService()
  • Method Details

    • toJsonString

      public String toJsonString(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Specified by:
      toJsonString in interface AsyncApiSerializerService
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • toYaml

      public String toYaml(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      Specified by:
      toYaml in interface AsyncApiSerializerService
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • getJsonObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getJsonObjectMapper()
      Get the current JSON object mapper configuration.
    • getYamlObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getYamlObjectMapper()
      Get the current YAML object mapper configuration.