Record Class UnifiedOpenAPI

java.lang.Object
java.lang.Record
io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI

public record UnifiedOpenAPI(String swagger, List<UnifiedOpenAPI.Server> servers, String host, String basePath, List<String> schemes, Map<String,UnifiedOpenAPI.PathItem> paths, UnifiedOpenAPI.Components components, Map<String,UnifiedOpenAPI.Schema> definitions) extends Record
  • Constructor Details

    • UnifiedOpenAPI

      public UnifiedOpenAPI(String swagger, List<UnifiedOpenAPI.Server> servers, String host, String basePath, List<String> schemes, Map<String,UnifiedOpenAPI.PathItem> paths, UnifiedOpenAPI.Components components, Map<String,UnifiedOpenAPI.Schema> definitions)
      Creates an instance of a UnifiedOpenAPI record class.
      Parameters:
      swagger - the value for the swagger record component
      servers - the value for the servers record component
      host - the value for the host record component
      basePath - the value for the basePath record component
      schemes - the value for the schemes record component
      paths - the value for the paths record component
      components - the value for the components record component
      definitions - the value for the definitions record component
  • Method Details

    • swaggerVersion

      public UnifiedOpenAPI.SwaggerVersion swaggerVersion()
    • getServers

      public List<String> getServers()
    • resolveSchema

      public UnifiedOpenAPI.Schema resolveSchema(String ref)
      Resolves a schema reference to a Schema object.

      It does not resolve nested references.

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • swagger

      public String swagger()
      Returns the value of the swagger record component.
      Returns:
      the value of the swagger record component
    • servers

      public List<UnifiedOpenAPI.Server> servers()
      Returns the value of the servers record component.
      Returns:
      the value of the servers record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • basePath

      public String basePath()
      Returns the value of the basePath record component.
      Returns:
      the value of the basePath record component
    • schemes

      public List<String> schemes()
      Returns the value of the schemes record component.
      Returns:
      the value of the schemes record component
    • paths

      Returns the value of the paths record component.
      Returns:
      the value of the paths record component
    • components

      public UnifiedOpenAPI.Components components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component
    • definitions

      public Map<String,UnifiedOpenAPI.Schema> definitions()
      Returns the value of the definitions record component.
      Returns:
      the value of the definitions record component