private void generateObjectDefinition(ResolvedType targetType, ObjectNode definition) {
        definition.put(this.getKeyword(SchemaKeyword.TAG_TYPE), this.getKeyword(SchemaKeyword.TAG_TYPE_OBJECT));

        MemberCollectionContextImpl memberCollectionContext = new MemberCollectionContextImpl(targetType, this.generatorConfig, this.typeContext);
        memberCollectionContext.collectProperties();

        List<MemberScope<?, ?>> sortedProperties = memberCollectionContext.getSortedProperties();
        if (!sortedProperties.isEmpty()) {
            this.addPropertiesToDefinition(definition, sortedProperties, memberCollectionContext.getRequiredPropertyNames());
        }
    }
Preparation Step: add the given targetType (which was previously determined to be anything but an array type).

@param targetType object type to add
@param definition node in the JSON schema to which all collected attributes should be added
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImpl.java