| 641 | } |
| 642 | |
| 643 | static Result validateOptionalGeneric(const Specification::ModelDescription& interface) { |
| 644 | for (const auto& input : interface.input()) { |
| 645 | if (input.type().isoptional()) { |
| 646 | return Result(ResultType::INVALID_MODEL_PARAMETERS, "Features cannot be optional to this type of model."); |
| 647 | } |
| 648 | } |
| 649 | return validateOptionalOutputs(interface); |
| 650 | } |
| 651 | |
| 652 | inline Result validateOptionalTree(const Specification::ModelDescription& interface) { |
| 653 | return validateOptionalOutputs(interface); |
no test coverage detected