@toolproof-npm/schema 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -825,21 +825,19 @@
825
825
  "$anchor": "ResourceType",
826
826
  "$schema": "https://json-schema.org/draft/2020-12/schema",
827
827
  "type": "object",
828
- "allOf": [
829
- {
830
- "required": [
831
- "identity",
832
- "resourceFormatRef"
833
- ],
834
- "properties": {
835
- "identity": {
836
- "$ref": "#/$defs/ResourceTypeIdentity"
837
- },
838
- "resourceFormatRef": {
839
- "$ref": "#/$defs/ResourceFormatIdentity"
840
- }
841
- }
828
+ "required": [
829
+ "identity",
830
+ "resourceFormatRef"
831
+ ],
832
+ "properties": {
833
+ "identity": {
834
+ "$ref": "#/$defs/ResourceTypeIdentity"
842
835
  },
836
+ "resourceFormatRef": {
837
+ "$ref": "#/$defs/ResourceFormatIdentity"
838
+ }
839
+ },
840
+ "allOf": [
843
841
  {
844
842
  "$ref": "#/$defs/Documented"
845
843
  },
@@ -848,7 +846,7 @@
848
846
  },
849
847
  {
850
848
  "if": {
851
- "$comment": "If resourceFormatRef is FORMAT-ApplicationJson, then extractor must not be present, but if resourceFormatRef is not FORMAT-ApplicationJson, then extractor must be present. This is because resources of types with format FORMAT-ApplicationJson are self-contained and do not need an extractor.",
849
+ "$comment": "If resourceFormatRef is FORMAT-ApplicationJson, then extractorUri must not be present, but if resourceFormatRef is not FORMAT-ApplicationJson, then extractorUri must be present. This is because resources of types with format FORMAT-ApplicationJson are self-contained and do not need an extractor.",
852
850
  "properties": {
853
851
  "resourceFormatRef": {
854
852
  "const": "FORMAT-ApplicationJson"
@@ -858,17 +856,17 @@
858
856
  "then": {
859
857
  "not": {
860
858
  "required": [
861
- "extractor"
859
+ "extractorUri"
862
860
  ]
863
861
  }
864
862
  },
865
863
  "else": {
866
864
  "type": "object",
867
865
  "required": [
868
- "extractor"
866
+ "extractorUri"
869
867
  ],
870
868
  "properties": {
871
- "extractor": {
869
+ "extractorUri": {
872
870
  "type": "string",
873
871
  "format": "uri"
874
872
  }
@@ -897,17 +895,15 @@
897
895
  "$anchor": "ResourceFormat",
898
896
  "$schema": "https://json-schema.org/draft/2020-12/schema",
899
897
  "type": "object",
898
+ "required": [
899
+ "identity"
900
+ ],
901
+ "properties": {
902
+ "identity": {
903
+ "$ref": "#/$defs/ResourceFormatIdentity"
904
+ }
905
+ },
900
906
  "allOf": [
901
- {
902
- "required": [
903
- "identity"
904
- ],
905
- "properties": {
906
- "identity": {
907
- "$ref": "#/$defs/ResourceFormatIdentity"
908
- }
909
- }
910
- },
911
907
  {
912
908
  "$ref": "#/$defs/Documented"
913
909
  }
@@ -1124,27 +1120,25 @@
1124
1120
  "name": "Job",
1125
1121
  "description": "dummy-description",
1126
1122
  "resourceFormatRef": "FORMAT-ApplicationJob",
1127
- "extractor": "https://extractors.toolproof.com/v0/JobExtractor.js",
1123
+ "extractorUri": "https://extractors.toolproof.com/v0/JobExtractor.js",
1128
1124
  "extractionSchema": {
1129
1125
  "$anchor": "Job",
1130
1126
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1131
1127
  "type": "object",
1132
- "allOf": [
1133
- {
1134
- "required": [
1135
- "identity",
1136
- "implementationUri"
1137
- ],
1138
- "properties": {
1139
- "identity": {
1140
- "$ref": "#/$defs/JobIdentity"
1141
- },
1142
- "implementationUri": {
1143
- "type": "string",
1144
- "format": "uri"
1145
- }
1146
- }
1128
+ "required": [
1129
+ "identity",
1130
+ "implementationUri"
1131
+ ],
1132
+ "properties": {
1133
+ "identity": {
1134
+ "$ref": "#/$defs/JobIdentity"
1147
1135
  },
1136
+ "implementationUri": {
1137
+ "type": "string",
1138
+ "format": "uri"
1139
+ }
1140
+ },
1141
+ "allOf": [
1148
1142
  {
1149
1143
  "$ref": "#/$defs/Documented"
1150
1144
  },
@@ -1326,22 +1320,18 @@
1326
1320
  "$anchor": "ResourceBase",
1327
1321
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1328
1322
  "type": "object",
1329
- "allOf": [
1330
- {
1331
- "required": [
1332
- "identity",
1333
- "resourceTypeRef"
1334
- ],
1335
- "properties": {
1336
- "identity": {
1337
- "$ref": "#/$defs/ResourceIdentity"
1338
- },
1339
- "resourceTypeRef": {
1340
- "$ref": "#/$defs/ResourceTypeIdentity"
1341
- }
1342
- }
1323
+ "required": [
1324
+ "identity",
1325
+ "resourceTypeRef"
1326
+ ],
1327
+ "properties": {
1328
+ "identity": {
1329
+ "$ref": "#/$defs/ResourceIdentity"
1330
+ },
1331
+ "resourceTypeRef": {
1332
+ "$ref": "#/$defs/ResourceTypeIdentity"
1343
1333
  }
1344
- ]
1334
+ }
1345
1335
  }
1346
1336
  }
1347
1337
  },
@@ -1762,22 +1752,19 @@
1762
1752
  "$anchor": "Execution",
1763
1753
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1764
1754
  "type": "object",
1765
- "allOf": [
1766
- {
1767
- "type": "object",
1768
- "required": [
1769
- "identity",
1770
- "jobRef"
1771
- ],
1772
- "properties": {
1773
- "identity": {
1774
- "$ref": "#/$defs/ExecutionIdentity"
1775
- },
1776
- "jobRef": {
1777
- "$ref": "#/$defs/JobIdentity"
1778
- }
1779
- }
1755
+ "required": [
1756
+ "identity",
1757
+ "jobRef"
1758
+ ],
1759
+ "properties": {
1760
+ "identity": {
1761
+ "$ref": "#/$defs/ExecutionIdentity"
1780
1762
  },
1763
+ "jobRef": {
1764
+ "$ref": "#/$defs/JobIdentity"
1765
+ }
1766
+ },
1767
+ "allOf": [
1781
1768
  {
1782
1769
  "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
1783
1770
  "$ref": "#/$defs/RoleBindingsWrapper"
@@ -1895,28 +1882,25 @@
1895
1882
  "$anchor": "WorkStep",
1896
1883
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1897
1884
  "type": "object",
1885
+ "required": [
1886
+ "identity",
1887
+ "kind",
1888
+ "execution"
1889
+ ],
1890
+ "properties": {
1891
+ "identity": {
1892
+ "$ref": "#/$defs/WorkStepIdentity"
1893
+ },
1894
+ "kind": {
1895
+ "const": "work"
1896
+ },
1897
+ "execution": {
1898
+ "$ref": "#/$defs/Execution"
1899
+ }
1900
+ },
1898
1901
  "allOf": [
1899
1902
  {
1900
1903
  "$ref": "#/$defs/StepKind"
1901
- },
1902
- {
1903
- "type": "object",
1904
- "required": [
1905
- "identity",
1906
- "kind",
1907
- "execution"
1908
- ],
1909
- "properties": {
1910
- "identity": {
1911
- "$ref": "#/$defs/WorkStepIdentity"
1912
- },
1913
- "kind": {
1914
- "const": "work"
1915
- },
1916
- "execution": {
1917
- "$ref": "#/$defs/Execution"
1918
- }
1919
- }
1920
1904
  }
1921
1905
  ]
1922
1906
  }
@@ -1962,33 +1946,30 @@
1962
1946
  "$anchor": "BranchStep",
1963
1947
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1964
1948
  "type": "object",
1949
+ "required": [
1950
+ "identity",
1951
+ "kind",
1952
+ "cases"
1953
+ ],
1954
+ "properties": {
1955
+ "identity": {
1956
+ "$ref": "#/$defs/BranchStepIdentity"
1957
+ },
1958
+ "kind": {
1959
+ "const": "branch"
1960
+ },
1961
+ "cases": {
1962
+ "type": "array",
1963
+ "items": {
1964
+ "$ref": "#/$defs/Conditional"
1965
+ },
1966
+ "minItems": 1,
1967
+ "uniqueItems": true
1968
+ }
1969
+ },
1965
1970
  "allOf": [
1966
1971
  {
1967
1972
  "$ref": "#/$defs/StepKind"
1968
- },
1969
- {
1970
- "type": "object",
1971
- "required": [
1972
- "identity",
1973
- "kind",
1974
- "cases"
1975
- ],
1976
- "properties": {
1977
- "identity": {
1978
- "$ref": "#/$defs/BranchStepIdentity"
1979
- },
1980
- "kind": {
1981
- "const": "branch"
1982
- },
1983
- "cases": {
1984
- "type": "array",
1985
- "items": {
1986
- "$ref": "#/$defs/Conditional"
1987
- },
1988
- "minItems": 1,
1989
- "uniqueItems": true
1990
- }
1991
- }
1992
1973
  }
1993
1974
  ]
1994
1975
  }
@@ -2034,28 +2015,25 @@
2034
2015
  "$anchor": "WhileStep",
2035
2016
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2036
2017
  "type": "object",
2018
+ "required": [
2019
+ "identity",
2020
+ "kind",
2021
+ "case"
2022
+ ],
2023
+ "properties": {
2024
+ "identity": {
2025
+ "$ref": "#/$defs/WhileStepIdentity"
2026
+ },
2027
+ "kind": {
2028
+ "const": "while"
2029
+ },
2030
+ "case": {
2031
+ "$ref": "#/$defs/Conditional"
2032
+ }
2033
+ },
2037
2034
  "allOf": [
2038
2035
  {
2039
2036
  "$ref": "#/$defs/StepKind"
2040
- },
2041
- {
2042
- "type": "object",
2043
- "required": [
2044
- "identity",
2045
- "kind",
2046
- "case"
2047
- ],
2048
- "properties": {
2049
- "identity": {
2050
- "$ref": "#/$defs/WhileStepIdentity"
2051
- },
2052
- "kind": {
2053
- "const": "while"
2054
- },
2055
- "case": {
2056
- "$ref": "#/$defs/Conditional"
2057
- }
2058
- }
2059
2037
  }
2060
2038
  ]
2061
2039
  }
@@ -2101,28 +2079,25 @@
2101
2079
  "$anchor": "ForStep",
2102
2080
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2103
2081
  "type": "object",
2082
+ "required": [
2083
+ "identity",
2084
+ "kind",
2085
+ "case"
2086
+ ],
2087
+ "properties": {
2088
+ "identity": {
2089
+ "$ref": "#/$defs/ForStepIdentity"
2090
+ },
2091
+ "kind": {
2092
+ "const": "for"
2093
+ },
2094
+ "case": {
2095
+ "$ref": "#/$defs/Conditional"
2096
+ }
2097
+ },
2104
2098
  "allOf": [
2105
2099
  {
2106
2100
  "$ref": "#/$defs/StepKind"
2107
- },
2108
- {
2109
- "type": "object",
2110
- "required": [
2111
- "identity",
2112
- "kind",
2113
- "case"
2114
- ],
2115
- "properties": {
2116
- "identity": {
2117
- "$ref": "#/$defs/ForStepIdentity"
2118
- },
2119
- "kind": {
2120
- "const": "for"
2121
- },
2122
- "case": {
2123
- "$ref": "#/$defs/Conditional"
2124
- }
2125
- }
2126
2101
  }
2127
2102
  ]
2128
2103
  }
@@ -2204,27 +2179,22 @@
2204
2179
  "$anchor": "StatelessStrategy",
2205
2180
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2206
2181
  "type": "object",
2207
- "allOf": [
2208
- {
2209
- "type": "object",
2210
- "required": [
2211
- "identity",
2212
- "steps"
2213
- ],
2214
- "properties": {
2215
- "identity": {
2216
- "$ref": "#/$defs/StatelessStrategyIdentity"
2217
- },
2218
- "steps": {
2219
- "type": "array",
2220
- "items": {
2221
- "$ref": "#/$defs/Step"
2222
- },
2223
- "uniqueItems": true
2224
- }
2225
- }
2226
- }
2182
+ "required": [
2183
+ "identity",
2184
+ "steps"
2227
2185
  ],
2186
+ "properties": {
2187
+ "identity": {
2188
+ "$ref": "#/$defs/StatelessStrategyIdentity"
2189
+ },
2190
+ "steps": {
2191
+ "type": "array",
2192
+ "items": {
2193
+ "$ref": "#/$defs/Step"
2194
+ },
2195
+ "uniqueItems": true
2196
+ }
2197
+ },
2228
2198
  "unevaluatedProperties": false
2229
2199
  }
2230
2200
  }
@@ -2344,21 +2314,19 @@
2344
2314
  "$anchor": "StatefulStrategy",
2345
2315
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2346
2316
  "type": "object",
2347
- "allOf": [
2348
- {
2349
- "required": [
2350
- "identity",
2351
- "statelessStrategy"
2352
- ],
2353
- "properties": {
2354
- "identity": {
2355
- "$ref": "#/$defs/StatefulStrategyIdentity"
2356
- },
2357
- "statelessStrategy": {
2358
- "$ref": "#/$defs/StatelessStrategy"
2359
- }
2360
- }
2317
+ "required": [
2318
+ "identity",
2319
+ "statelessStrategy"
2320
+ ],
2321
+ "properties": {
2322
+ "identity": {
2323
+ "$ref": "#/$defs/StatefulStrategyIdentity"
2361
2324
  },
2325
+ "statelessStrategy": {
2326
+ "$ref": "#/$defs/StatelessStrategy"
2327
+ }
2328
+ },
2329
+ "allOf": [
2362
2330
  {
2363
2331
  "$ref": "#/$defs/StrategyStateWrapper"
2364
2332
  }