|
858 | 858 | }, |
859 | 859 | "regressionAssessment": { |
860 | 860 | "description": "A non-blaming preliminary regression assessment. Do not name a predecessor here; a PR link is published only through independently verified regressionProvenance.", |
861 | | - "oneOf": [ |
862 | | - { |
863 | | - "type": "null" |
| 861 | + "type": ["object", "null"], |
| 862 | + "additionalProperties": false, |
| 863 | + "required": ["confidence", "supportingEvidence"], |
| 864 | + "properties": { |
| 865 | + "confidence": { |
| 866 | + "type": "string", |
| 867 | + "enum": ["suspected", "probable"] |
864 | 868 | }, |
865 | | - { |
866 | | - "type": "object", |
867 | | - "additionalProperties": false, |
868 | | - "required": ["confidence", "supportingEvidence"], |
869 | | - "properties": { |
870 | | - "confidence": { |
871 | | - "type": "string", |
872 | | - "enum": ["suspected", "probable"] |
873 | | - }, |
874 | | - "supportingEvidence": { |
875 | | - "type": "array", |
876 | | - "minItems": 1, |
877 | | - "maxItems": 3, |
878 | | - "uniqueItems": true, |
879 | | - "items": { |
880 | | - "type": "string", |
881 | | - "enum": [ |
882 | | - "reproduction", |
883 | | - "reviewed_change", |
884 | | - "failure_trace", |
885 | | - "known_regression_link" |
886 | | - ] |
887 | | - } |
888 | | - } |
889 | | - }, |
890 | | - "allOf": [ |
891 | | - { |
892 | | - "if": { |
893 | | - "properties": { "confidence": { "const": "probable" } } |
894 | | - }, |
895 | | - "then": { |
896 | | - "properties": { "supportingEvidence": { "minItems": 2 } } |
897 | | - } |
898 | | - } |
899 | | - ] |
| 869 | + "supportingEvidence": { |
| 870 | + "type": "array", |
| 871 | + "minItems": 1, |
| 872 | + "maxItems": 3, |
| 873 | + "items": { |
| 874 | + "type": "string", |
| 875 | + "enum": ["reproduction", "reviewed_change", "failure_trace", "known_regression_link"] |
| 876 | + } |
900 | 877 | } |
901 | | - ] |
| 878 | + } |
902 | 879 | }, |
903 | 880 | "regressionProvenance": { |
904 | 881 | "description": "An untrusted candidate predecessor link. The runtime publishes it only after exact GitHub PR metadata and local blame agree on the merge commit; use null unless one exact relevant source line and prior merged PR are known.", |
905 | | - "oneOf": [ |
906 | | - { |
907 | | - "type": "null" |
| 882 | + "type": ["object", "null"], |
| 883 | + "additionalProperties": false, |
| 884 | + "required": [ |
| 885 | + "repo", |
| 886 | + "pullRequestNumber", |
| 887 | + "pullRequestUrl", |
| 888 | + "mergeCommitSha", |
| 889 | + "sourcePath", |
| 890 | + "sourceLine" |
| 891 | + ], |
| 892 | + "properties": { |
| 893 | + "repo": { |
| 894 | + "type": "string", |
| 895 | + "description": "Target owner/repository only." |
908 | 896 | }, |
909 | | - { |
910 | | - "type": "object", |
911 | | - "additionalProperties": false, |
912 | | - "required": [ |
913 | | - "repo", |
914 | | - "pullRequestNumber", |
915 | | - "pullRequestUrl", |
916 | | - "mergeCommitSha", |
917 | | - "sourcePath", |
918 | | - "sourceLine" |
919 | | - ], |
920 | | - "properties": { |
921 | | - "repo": { |
922 | | - "type": "string", |
923 | | - "description": "Target owner/repository only." |
924 | | - }, |
925 | | - "pullRequestNumber": { |
926 | | - "type": "integer", |
927 | | - "minimum": 1 |
928 | | - }, |
929 | | - "pullRequestUrl": { |
930 | | - "type": "string", |
931 | | - "description": "Canonical https://github.com/<owner>/<repo>/pull/<number> URL." |
932 | | - }, |
933 | | - "mergeCommitSha": { |
934 | | - "type": "string", |
935 | | - "pattern": "^[0-9a-fA-F]{40}$" |
936 | | - }, |
937 | | - "sourcePath": { |
938 | | - "type": "string", |
939 | | - "description": "One exact repository-relative tracked source path; no absolute or traversal path." |
940 | | - }, |
941 | | - "sourceLine": { |
942 | | - "type": "integer", |
943 | | - "minimum": 1 |
944 | | - } |
945 | | - } |
| 897 | + "pullRequestNumber": { |
| 898 | + "type": "integer", |
| 899 | + "minimum": 1 |
| 900 | + }, |
| 901 | + "pullRequestUrl": { |
| 902 | + "type": "string", |
| 903 | + "description": "Canonical https://github.com/<owner>/<repo>/pull/<number> URL." |
| 904 | + }, |
| 905 | + "mergeCommitSha": { |
| 906 | + "type": "string", |
| 907 | + "pattern": "^[0-9a-fA-F]{40}$" |
| 908 | + }, |
| 909 | + "sourcePath": { |
| 910 | + "type": "string", |
| 911 | + "description": "One exact repository-relative tracked source path; no absolute or traversal path." |
| 912 | + }, |
| 913 | + "sourceLine": { |
| 914 | + "type": "integer", |
| 915 | + "minimum": 1 |
946 | 916 | } |
947 | | - ] |
| 917 | + } |
948 | 918 | }, |
949 | 919 | "closeComment": { |
950 | 920 | "type": "string" |
|
0 commit comments