Class Reference

java.lang.Object
com.github.chhorz.openapi.common.domain.Reference

public class Reference extends Object
https://spec.openapis.org/oas/v3.1.0#reference-object
Author:
chhorz
  • Constructor Details

    • Reference

      public Reference()
    • Reference

      public Reference(String $ref)
  • Method Details

    • forSchema

      public static Reference forSchema(String referenceString)
      Creates a new schema reference.
      Parameters:
      referenceString - the schema to create a reference for
      Returns:
      the OpenAPI Reference
    • forRequestBody

      public static Reference forRequestBody(String referenceString)
      Creates a new reference for a request body.
      Parameters:
      referenceString - the response body to create a reference for
      Returns:
      the OpenAPI Reference
    • get$ref

      public String get$ref()
    • toString

      public String toString()
      Overrides:
      toString in class Object