@Override
	public Schema customize(Schema property, AnnotatedType type) {
		Annotation[] ctxAnnotations = type.getCtxAnnotations();
		if (ctxAnnotations == null) {
			return property;
		}

		Optional<CustomizedProperty> propertyAnnotation = Stream.of(ctxAnnotations)
				.filter(CustomizedProperty.class::isInstance)
				.findFirst()
				.map(CustomizedProperty.class::cast);

		JavaType javaType = objectMapperProvider.jsonMapper().constructType(type.getType());
		if (javaType.getRawClass().equals(Duration.class)) {
			property = new StringSchema().format("duration").properties(Collections.emptyMap());
		}
		return property;
	}
Customize schema.

@param property the property
@param type     the type
@return the schema
springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v30/app70/customizer/PropertyCustomizer.java