java.lang.Object
io.github.blueprintplatform.openapi.generics.codegen.external.ExternalModelRegistry

public class ExternalModelRegistry extends Object
Holds mappings between OpenAPI model names and external Java types (FQCN).

Used to prevent generation of shared contract models and reference them instead.

Configuration format:

 "openapi-generics.response-contract.CustomerDto=io.example.contract.CustomerDto
 
  • Constructor Details

    • ExternalModelRegistry

      public ExternalModelRegistry()
  • Method Details

    • register

      public void register(Map<String,Object> additionalProperties)
      Registers external models from generator additionalProperties.
    • isExternal

      public boolean isExternal(String modelName)
      Returns:
      true if model is externally provided
    • getFqcn

      public String getFqcn(String modelName)
      Returns:
      fully-qualified class name or null