@Override
		public Boolean hasRequiredMarker(AnnotatedMember annotatedMember) {
			Schema schemaAnnotation = annotatedMember.getAnnotation(Schema.class);
			if (schemaAnnotation != null) {
				Schema.RequiredMode requiredMode = schemaAnnotation.requiredMode();
				if (schemaAnnotation.required() || requiredMode == Schema.RequiredMode.REQUIRED) {
					return true;
				}
				else if (requiredMode == Schema.RequiredMode.NOT_REQUIRED || StringUtils.isNotEmpty(schemaAnnotation.defaultValue())) {
					return false;
				}
			}
			return super.hasRequiredMarker(annotatedMember);
		}
The type Respect schema required annotation introspector.
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configuration/SpringDocRequiredModule.java