private void addSchemas(Components components, String key, Schema referencedSchema, boolean openapi31) {
		Map<String, Schema> properties = referencedSchema.getProperties();
		if (!CollectionUtils.isEmpty(referencedSchema.getProperties())) {
			Iterator<Entry<String, Schema>> it = properties.entrySet().iterator();
			while (it.hasNext()) {
				Entry<String, Schema> entry = it.next();
				String propId = entry.getKey();
				if (entityInoMap.containsKey(key) && entityInoMap.get(key).getIgnoredFields().contains(propId)) {
					it.remove();
				}
			}
		}
		if (isComposedSchema(referencedSchema)) {
			updateComposedSchema(referencedSchema.getAllOf(), referencedSchema.getOneOf(), RESPONSE, null, openapi31);
		}
		components.addSchemas(key + RESPONSE, referencedSchema);
	}
Add schemas.

@param components       the components
@param key              the key
@param referencedSchema the referenced schema
@param openapi31        the openapi 31
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SpringDocDataRestUtils.java