private static object GetOpenApiPrimitiveValue(IOpenApiPrimitive primitive) { return(primitive.GetType().GetProperty("Value").GetValue(primitive)); }