@Override
    public CustomDefinition provideCustomSchemaDefinition(ResolvedType javaType, SchemaGenerationContext context) {
        final Deque<ResolvedType> declaringParents = this.declaringTypes.get();
        if (declaringParents.contains(javaType)) {
            throw new IllegalArgumentException("Option.INLINE_ALL_SCHEMAS cannot be fulfilled due to a circular reference to "
                    + context.getTypeContext().getFullTypeDescription(javaType));
        }
        if (context.getTypeContext().isContainerType(javaType)) {
            // container types are being in-lined by default and only handle container-item-scope if the container itself is not a custom definition
            return null;
        }
        declaringParents.addLast(javaType);
        ObjectNode definition = context.createStandardDefinition(javaType, this);
        declaringParents.removeLast();
        return new CustomDefinition(definition, true);
    }
Default module being included if {@code Option.INLINE_ALL_SCHEMAS} is enabled.
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/module/InlineSchemaModule.java