Class OpenApiDocumentEndpoint

java.lang.Object
io.fluxzero.sdk.web.OpenApiDocumentEndpoint

public final class OpenApiDocumentEndpoint extends Object
Automatic endpoint that serves the generated OpenAPI document for an ApiDocInfo scope.

All "META-INF/fluxzero/openapi.json" resources visible to the handler class loader are combined in stable resource order. Compatible object members are merged, exact duplicates are accepted, and conflicting metadata, routes, operation ids, or components fail during handler registration. A resource produced by an application shade transformer may contain multiple consecutive JSON documents. Runtime extraction is used only when no compiled or manually supplied resource is present.

  • Method Details

    • forHandler

      public static List<OpenApiDocumentEndpoint> forHandler(Class<?> handlerType, Object handler)
    • validateResources

      public void validateResources()
      Loads and validates compiled OpenAPI resources. Handler registration invokes this once for each distinct automatic document endpoint so resource conflicts fail before the endpoint starts serving requests.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object