Skip to content

Commit 98e8f0e

Browse files
Merge pull request #8 from BHoM/schema-updates
Automated Schema Updates - 2025-09-26
2 parents 88451bf + 91f1222 commit 98e8f0e

23 files changed

+516
-46
lines changed

BHoM/IBHoMObject.json

Lines changed: 79 additions & 1 deletion
Large diffs are not rendered by default.

BHoM/IImmutable.json

Lines changed: 79 additions & 1 deletion
Large diffs are not rendered by default.

BHoM/IObject.json

Lines changed: 235 additions & 1 deletion
Large diffs are not rendered by default.

CodeComplianceTest_oM/CodeCompliance/AssemblyReference.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/AssemblyReference.json",
34
"title" : "AssemblyReference",
45
"type" : ["object", "null"],
@@ -35,13 +36,14 @@
3536
"type" : ["array", "null"],
3637
"items" : {
3738
"type" : ["string", "null"]
38-
}
39+
},
40+
"uniqueItems" : true
3941
},
4042
"CustomData" : {
4143
"type" : ["object", "null"]
4244
},
4345
"_t" : {
44-
"type" : ["string", "null"],
46+
"type" : "string",
4547
"description" : "Optional type disciminator.",
4648
"const" : "BH.oM.Test.CodeCompliance.AssemblyReference"
4749
},

CodeComplianceTest_oM/CodeCompliance/Attributes/ComplianceTypeAttribute.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/ComplianceTypeAttribute.json",
34
"title" : "ComplianceTypeAttribute",
45
"type" : ["object", "null"],
@@ -8,7 +9,7 @@
89
},
910
"TypeId" : { },
1011
"_t" : {
11-
"type" : ["string", "null"],
12+
"type" : "string",
1213
"description" : "Optional type disciminator.",
1314
"const" : "BH.oM.Test.CodeCompliance.Attributes.ComplianceTypeAttribute"
1415
},
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/ConditionAttribute.json",
34
"required" : ["_t"],
45
"properties" : {
56
"_t" : {
6-
"enum" : ["BH.oM.Test.CodeCompliance.Attributes.PathAttribute", "BH.oM.Test.CodeCompliance.Attributes.IsPublicAttribute"]
7+
"enum" : ["BH.oM.Test.CodeCompliance.Attributes.IsPublicAttribute", "BH.oM.Test.CodeCompliance.Attributes.PathAttribute"]
78
}
89
},
910
"allOf" : [{
1011
"if" : {
1112
"properties" : {
1213
"_t" : {
13-
"type" : ["string", "null"],
14-
"const" : "BH.oM.Test.CodeCompliance.Attributes.PathAttribute"
14+
"type" : "string",
15+
"const" : "BH.oM.Test.CodeCompliance.Attributes.IsPublicAttribute"
1516
}
1617
},
1718
"required" : ["_t"]
1819
},
1920
"then" : {
20-
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/PathAttribute.json"
21+
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/IsPublicAttribute.json"
2122
}
2223
}, {
2324
"if" : {
2425
"properties" : {
2526
"_t" : {
26-
"type" : ["string", "null"],
27-
"const" : "BH.oM.Test.CodeCompliance.Attributes.IsPublicAttribute"
27+
"type" : "string",
28+
"const" : "BH.oM.Test.CodeCompliance.Attributes.PathAttribute"
2829
}
2930
},
3031
"required" : ["_t"]
3132
},
3233
"then" : {
33-
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/IsPublicAttribute.json"
34+
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/PathAttribute.json"
3435
}
3536
}]
3637
}

CodeComplianceTest_oM/CodeCompliance/Attributes/ErrorLevelAttribute.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/ErrorLevelAttribute.json",
34
"title" : "ErrorLevelAttribute",
45
"type" : ["object", "null"],
@@ -8,7 +9,7 @@
89
},
910
"TypeId" : { },
1011
"_t" : {
11-
"type" : ["string", "null"],
12+
"type" : "string",
1213
"description" : "Optional type disciminator.",
1314
"const" : "BH.oM.Test.CodeCompliance.Attributes.ErrorLevelAttribute"
1415
},

CodeComplianceTest_oM/CodeCompliance/Attributes/IsPublicAttribute.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/IsPublicAttribute.json",
34
"title" : "IsPublicAttribute",
45
"type" : ["object", "null"],
@@ -8,7 +9,7 @@
89
},
910
"TypeId" : { },
1011
"_t" : {
11-
"type" : ["string", "null"],
12+
"type" : "string",
1213
"description" : "Optional type disciminator.",
1314
"const" : "BH.oM.Test.CodeCompliance.Attributes.IsPublicAttribute"
1415
},

CodeComplianceTest_oM/CodeCompliance/Attributes/MessageAttribute.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/MessageAttribute.json",
34
"title" : "MessageAttribute",
45
"type" : ["object", "null"],
@@ -11,7 +12,7 @@
1112
},
1213
"TypeId" : { },
1314
"_t" : {
14-
"type" : ["string", "null"],
15+
"type" : "string",
1516
"description" : "Optional type disciminator.",
1617
"const" : "BH.oM.Test.CodeCompliance.Attributes.MessageAttribute"
1718
},

CodeComplianceTest_oM/CodeCompliance/Attributes/PathAttribute.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
23
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/CodeComplianceTest_oM/CodeCompliance/Attributes/PathAttribute.json",
34
"title" : "PathAttribute",
45
"type" : ["object", "null"],
@@ -11,7 +12,7 @@
1112
},
1213
"TypeId" : { },
1314
"_t" : {
14-
"type" : ["string", "null"],
15+
"type" : "string",
1516
"description" : "Optional type disciminator.",
1617
"const" : "BH.oM.Test.CodeCompliance.Attributes.PathAttribute"
1718
},

0 commit comments

Comments
 (0)