public static Schema resolveSchemaFromType(Class<?> schemaImplementation, Components components,
			JsonView jsonView, Annotation[] annotations, SpecVersion specVersion) {
		Schema schemaObject = extractSchema(components, schemaImplementation, jsonView, annotations, specVersion);
		if (schemaObject != null && StringUtils.isBlank(schemaObject.get$ref())
				&& StringUtils.isBlank(schemaObject.getType()) && !(schemaObject instanceof ComposedSchema)) {
			// default to string
			schemaObject.setType("string");
		}
		return schemaObject;
	}
Resolve schema from type schema.

@param schemaImplementation the schema implementation
@param components           the components
@param jsonView             the json view
@param annotations          the annotations
@param specVersion          the spec version
@return the schema
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SpringDocAnnotationsUtils.java