Class ExternalImportResolver
java.lang.Object
io.github.blueprintplatform.openapi.generics.codegen.external.ExternalImportResolver
Resolves imports for application-owned response contract types used by generated wrapper models.
The resolver inspects canonical OpenAPI wrapper metadata to determine the effective inner
contract type. It first prefers x-data-item for container-based responses and otherwise
falls back to x-api-wrapper-datatype for direct payload responses.
When the resolved type is registered in the ExternalModelRegistry, its fully qualified
Java type is published through x-extra-imports for consumption by the wrapper template.
Models that are not marked as wrapper schemas, do not expose a resolvable inner type, or do not have a matching external contract registration are left unchanged.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExternalImportResolver
-
-
Method Details
-
apply
public void apply(org.openapitools.codegen.CodegenModel model)
-