|
26 | 26 | },
|
27 | 27 | "NumericQuestion": {
|
28 | 28 | "additionalProperties": false,
|
| 29 | + "description": "Represents a question with numeric answer.", |
29 | 30 | "properties": {
|
30 | 31 | "details": {
|
31 | 32 | "description": "Optional human-readable details or clarifiation about this question.",
|
|
56 | 57 | }
|
57 | 58 | },
|
58 | 59 | "required": ["id", "text", "type"],
|
| 60 | + "title": "Numeric question", |
59 | 61 | "type": "object"
|
60 | 62 | },
|
61 | 63 | "Option": {
|
|
89 | 91 | {
|
90 | 92 | "$ref": "#/definitions/NumericQuestion"
|
91 | 93 | }
|
92 |
| - ] |
| 94 | + ], |
| 95 | + "description": "Represents a single question of the questionnaire." |
93 | 96 | },
|
94 | 97 | "QuestionWithOptions": {
|
95 | 98 | "additionalProperties": false,
|
| 99 | + "description": "Represents a question with predefined answers to select.", |
96 | 100 | "properties": {
|
97 | 101 | "details": {
|
98 | 102 | "description": "Optional human-readable details or clarifiation about this question.",
|
|
346 | 350 | "type": "object"
|
347 | 351 | },
|
348 | 352 | "LogicConstant": {
|
349 |
| - "type": "string" |
| 353 | + "anyOf": [ |
| 354 | + { |
| 355 | + "type": "number" |
| 356 | + }, |
| 357 | + { |
| 358 | + "type": "string" |
| 359 | + }, |
| 360 | + { |
| 361 | + "type": "boolean" |
| 362 | + } |
| 363 | + ] |
350 | 364 | },
|
351 | 365 | "LogicEquals": {
|
352 | 366 | "additionalProperties": false,
|
353 |
| - "type": "object", |
354 | 367 | "properties": {
|
355 | 368 | "==": {
|
356 | 369 | "items": {
|
357 |
| - "$ref": "#/definitions/LogicExpression" |
| 370 | + "anyOf": [ |
| 371 | + { |
| 372 | + "$ref": "#/definitions/LogicExpression" |
| 373 | + }, |
| 374 | + { |
| 375 | + "$ref": "#/definitions/LogicExpression" |
| 376 | + } |
| 377 | + ] |
358 | 378 | },
|
359 | 379 | "maxItems": 2,
|
360 | 380 | "minItems": 2,
|
361 | 381 | "type": "array"
|
362 | 382 | }
|
363 | 383 | },
|
364 | 384 | "required": ["=="],
|
365 |
| - "title": "LogicEquals" |
| 385 | + "title": "LogicEquals", |
| 386 | + "type": "object" |
366 | 387 | },
|
367 | 388 | "LogicExpression": {
|
368 | 389 | "anyOf": [
|
|
380 | 401 | },
|
381 | 402 | "LogicGreater": {
|
382 | 403 | "additionalProperties": false,
|
383 |
| - "type": "object", |
384 | 404 | "properties": {
|
385 | 405 | ">": {
|
386 | 406 | "items": {
|
387 |
| - "$ref": "#/definitions/LogicExpression" |
| 407 | + "anyOf": [ |
| 408 | + { |
| 409 | + "$ref": "#/definitions/LogicExpression" |
| 410 | + }, |
| 411 | + { |
| 412 | + "$ref": "#/definitions/LogicExpression" |
| 413 | + } |
| 414 | + ] |
388 | 415 | },
|
389 | 416 | "maxItems": 2,
|
390 | 417 | "minItems": 2,
|
391 | 418 | "type": "array"
|
392 | 419 | }
|
393 | 420 | },
|
394 | 421 | "required": [">"],
|
395 |
| - "title": "LogicGreater" |
| 422 | + "title": "LogicGreater", |
| 423 | + "type": "object" |
396 | 424 | },
|
397 | 425 | "LogicGreaterEqual": {
|
398 | 426 | "additionalProperties": false,
|
399 |
| - "type": "object", |
400 | 427 | "properties": {
|
401 | 428 | ">=": {
|
402 | 429 | "items": {
|
403 |
| - "$ref": "#/definitions/LogicExpression" |
| 430 | + "anyOf": [ |
| 431 | + { |
| 432 | + "$ref": "#/definitions/LogicExpression" |
| 433 | + }, |
| 434 | + { |
| 435 | + "$ref": "#/definitions/LogicExpression" |
| 436 | + } |
| 437 | + ] |
404 | 438 | },
|
405 | 439 | "maxItems": 2,
|
406 | 440 | "minItems": 2,
|
407 | 441 | "type": "array"
|
408 | 442 | }
|
409 | 443 | },
|
410 | 444 | "required": [">="],
|
411 |
| - "title": "LogicGreaterEqual" |
| 445 | + "title": "LogicGreaterEqual", |
| 446 | + "type": "object" |
412 | 447 | },
|
413 | 448 | "LogicIf": {
|
414 | 449 | "additionalProperties": false,
|
415 |
| - "type": "object", |
416 | 450 | "properties": {
|
417 | 451 | "if": {
|
418 | 452 | "items": {
|
419 |
| - "$ref": "#/definitions/LogicExpression" |
| 453 | + "anyOf": [ |
| 454 | + { |
| 455 | + "$ref": "#/definitions/LogicExpression" |
| 456 | + }, |
| 457 | + { |
| 458 | + "$ref": "#/definitions/LogicExpression" |
| 459 | + }, |
| 460 | + { |
| 461 | + "$ref": "#/definitions/LogicExpression" |
| 462 | + } |
| 463 | + ] |
420 | 464 | },
|
421 | 465 | "maxItems": 3,
|
422 | 466 | "minItems": 3,
|
423 | 467 | "type": "array"
|
424 | 468 | }
|
425 | 469 | },
|
426 | 470 | "required": ["if"],
|
427 |
| - "title": "LogicIf" |
| 471 | + "title": "LogicIf", |
| 472 | + "type": "object" |
428 | 473 | },
|
429 | 474 | "LogicIn": {
|
430 | 475 | "additionalProperties": false,
|
431 |
| - "type": "object", |
432 | 476 | "properties": {
|
433 | 477 | "in": {
|
434 | 478 | "items": {
|
435 |
| - "$ref": "#/definitions/LogicExpression" |
| 479 | + "anyOf": [ |
| 480 | + { |
| 481 | + "$ref": "#/definitions/LogicExpression" |
| 482 | + }, |
| 483 | + { |
| 484 | + "items": { |
| 485 | + "$ref": "#/definitions/LogicExpression" |
| 486 | + }, |
| 487 | + "type": "array" |
| 488 | + } |
| 489 | + ] |
436 | 490 | },
|
437 | 491 | "maxItems": 2,
|
438 | 492 | "minItems": 2,
|
439 | 493 | "type": "array"
|
440 | 494 | }
|
441 | 495 | },
|
442 | 496 | "required": ["in"],
|
443 |
| - "title": "LogicIn" |
| 497 | + "title": "LogicIn", |
| 498 | + "type": "object" |
444 | 499 | },
|
445 | 500 | "LogicLess": {
|
446 | 501 | "additionalProperties": false,
|
447 |
| - "type": "object", |
448 | 502 | "properties": {
|
449 | 503 | "<": {
|
450 | 504 | "items": {
|
451 |
| - "$ref": "#/definitions/LogicExpression" |
| 505 | + "anyOf": [ |
| 506 | + { |
| 507 | + "$ref": "#/definitions/LogicExpression" |
| 508 | + }, |
| 509 | + { |
| 510 | + "$ref": "#/definitions/LogicExpression" |
| 511 | + } |
| 512 | + ] |
452 | 513 | },
|
453 | 514 | "maxItems": 2,
|
454 | 515 | "minItems": 2,
|
455 | 516 | "type": "array"
|
456 | 517 | }
|
457 | 518 | },
|
458 | 519 | "required": ["<"],
|
459 |
| - "title": "LogicLess" |
| 520 | + "title": "LogicLess", |
| 521 | + "type": "object" |
460 | 522 | },
|
461 | 523 | "LogicLessEqual": {
|
462 | 524 | "additionalProperties": false,
|
463 |
| - "type": "object", |
464 | 525 | "properties": {
|
465 | 526 | "<=": {
|
466 | 527 | "items": {
|
467 |
| - "$ref": "#/definitions/LogicExpression" |
| 528 | + "anyOf": [ |
| 529 | + { |
| 530 | + "$ref": "#/definitions/LogicExpression" |
| 531 | + }, |
| 532 | + { |
| 533 | + "$ref": "#/definitions/LogicExpression" |
| 534 | + } |
| 535 | + ] |
468 | 536 | },
|
469 | 537 | "maxItems": 2,
|
470 | 538 | "minItems": 2,
|
471 | 539 | "type": "array"
|
472 | 540 | }
|
473 | 541 | },
|
474 | 542 | "required": ["<="],
|
475 |
| - "title": "LogicLessEqual" |
| 543 | + "title": "LogicLessEqual", |
| 544 | + "type": "object" |
476 | 545 | },
|
477 | 546 | "LogicMinus": {
|
478 | 547 | "additionalProperties": false,
|
479 |
| - "type": "object", |
480 | 548 | "properties": {
|
481 | 549 | "-": {
|
482 | 550 | "items": {
|
483 |
| - "$ref": "#/definitions/LogicExpression" |
| 551 | + "anyOf": [ |
| 552 | + { |
| 553 | + "$ref": "#/definitions/LogicExpression" |
| 554 | + }, |
| 555 | + { |
| 556 | + "$ref": "#/definitions/LogicExpression" |
| 557 | + } |
| 558 | + ] |
484 | 559 | },
|
485 | 560 | "maxItems": 2,
|
486 | 561 | "minItems": 2,
|
487 | 562 | "type": "array"
|
488 | 563 | }
|
489 | 564 | },
|
490 | 565 | "required": ["-"],
|
491 |
| - "title": "LogicMinus" |
| 566 | + "title": "LogicMinus", |
| 567 | + "type": "object" |
492 | 568 | },
|
493 | 569 | "LogicNot": {
|
494 | 570 | "additionalProperties": false,
|
|
573 | 649 | },
|
574 | 650 | "LogicPlus": {
|
575 | 651 | "additionalProperties": false,
|
576 |
| - "type": "object", |
577 | 652 | "properties": {
|
578 | 653 | "+": {
|
579 | 654 | "items": {
|
580 |
| - "$ref": "#/definitions/LogicExpression" |
| 655 | + "anyOf": [ |
| 656 | + { |
| 657 | + "$ref": "#/definitions/LogicExpression" |
| 658 | + }, |
| 659 | + { |
| 660 | + "$ref": "#/definitions/LogicExpression" |
| 661 | + } |
| 662 | + ] |
581 | 663 | },
|
582 | 664 | "maxItems": 2,
|
583 | 665 | "minItems": 2,
|
584 | 666 | "type": "array"
|
585 | 667 | }
|
586 | 668 | },
|
587 | 669 | "required": ["+"],
|
588 |
| - "title": "LogicPlus" |
| 670 | + "title": "LogicPlus", |
| 671 | + "type": "object" |
589 | 672 | },
|
590 | 673 | "LogicReduce": {
|
591 | 674 | "additionalProperties": false,
|
592 |
| - "type": "object", |
593 | 675 | "properties": {
|
594 | 676 | "reduce": {
|
595 | 677 | "items": {
|
596 |
| - "$ref": "#/definitions/LogicExpression" |
| 678 | + "anyOf": [ |
| 679 | + { |
| 680 | + "$ref": "#/definitions/LogicExpression" |
| 681 | + }, |
| 682 | + { |
| 683 | + "$ref": "#/definitions/LogicExpression" |
| 684 | + }, |
| 685 | + { |
| 686 | + "$ref": "#/definitions/LogicExpression" |
| 687 | + } |
| 688 | + ] |
597 | 689 | },
|
598 | 690 | "maxItems": 3,
|
599 | 691 | "minItems": 3,
|
600 | 692 | "type": "array"
|
601 | 693 | }
|
602 | 694 | },
|
603 | 695 | "required": ["reduce"],
|
604 |
| - "title": "LogicReduce" |
| 696 | + "title": "LogicReduce", |
| 697 | + "type": "object" |
605 | 698 | },
|
606 | 699 | "LogicSome": {
|
607 | 700 | "additionalProperties": false,
|
608 |
| - "type": "object", |
609 | 701 | "properties": {
|
610 | 702 | "some": {
|
611 | 703 | "items": {
|
612 |
| - "$ref": "#/definitions/LogicExpression" |
| 704 | + "anyOf": [ |
| 705 | + { |
| 706 | + "$ref": "#/definitions/LogicExpression" |
| 707 | + }, |
| 708 | + { |
| 709 | + "$ref": "#/definitions/LogicExpression" |
| 710 | + } |
| 711 | + ] |
613 | 712 | },
|
614 | 713 | "maxItems": 2,
|
615 | 714 | "minItems": 2,
|
616 | 715 | "type": "array"
|
617 | 716 | }
|
618 | 717 | },
|
619 | 718 | "required": ["some"],
|
620 |
| - "title": "LogicSome" |
| 719 | + "title": "LogicSome", |
| 720 | + "type": "object" |
621 | 721 | },
|
622 | 722 | "LogicVariable": {
|
623 | 723 | "additionalProperties": false,
|
|
0 commit comments