public static boolean swaggerVisible(@Nullable io.swagger.v3.oas.annotations.media.Schema schema,
			@Nullable Parameter parameter) {
		if (parameter != null) {
			return !parameter.hidden();
		}
		if (schema != null) {
			return !schema.hidden();
		}
		return true;
	}
Is swagger visible.

@param schema    the schema
@param parameter the parameter
@return the boolean
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SchemaUtils.java