- },
- {
- "description": "Subschema validating relation between dut_type and dut_version.",
- "oneOf": [
- {
- "description": "Subschema for tests with no DUT, e.g. TRex self-test.",
- "type": "object",
- "properties": {
- "dut_type": {
- "const": "none"
- },
- "dut_version": {
- "const": ""
- }
- }
- },
- {
- "description": "Subschema for DUT type VPP.",
- "type": "object",
- "properties": {
- "dut_type": {
- "const": "VPP"
- },
- "dut_version": {
- "minLength": 1
- }
- }
- },
- {
- "description": "Subschema for DUT type DPDK.",
- "type": "object",
- "properties": {
- "dut_type": {
- "const": "DPDK"
- },
- "dut_version": {
- "minLength": 1
- }
- }
- }
- ]