Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion BHoM/IObject.json

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion BHoM/ISettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"required" : ["_t"],
"properties" : {
"_t" : {
"enum" : ["BH.oM.Adapters.SQL.SqlClientAssemblyFixSettings", "BH.oM.BHoMAnalytics.ToolkitSettings", "BH.oM.Data.Library.LibrarySettings", "BH.oM.Grasshopper.UISettings", "BH.oM.UI.SearchSettings"]
"enum" : ["BH.oM.Adapters.SQL.SqlClientAssemblyFixSettings", "BH.oM.BHoMAnalytics.ToolkitSettings", "BH.oM.Data.Library.LibrarySettings", "BH.oM.Grasshopper.UISettings", "BH.oM.UI.CustomRibbonSettings", "BH.oM.UI.SearchSettings"]
}
},
"allOf" : [{
Expand Down Expand Up @@ -59,6 +59,19 @@
"then" : {
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Grasshopper_oM/UISettings.json"
}
}, {
"if" : {
"properties" : {
"_t" : {
"type" : "string",
"const" : "BH.oM.UI.CustomRibbonSettings"
}
},
"required" : ["_t"]
},
"then" : {
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/UI_oM/CustomRibbonSettings.json"
}
}, {
"if" : {
"properties" : {
Expand Down
43 changes: 43 additions & 0 deletions UI_oM/CustomRibbonEntry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/UI_oM/CustomRibbonEntry.json",
"title" : "CustomRibbonEntry",
"type" : ["object", "null"],
"properties" : {
"CallerType" : {
"type" : ["object", "null"],
"properties" : {
"_t" : {
"type" : "string",
"const" : "System.Type"
},
"Name" : {
"type" : ["string", "null"]
}
}
},
"ItemJson" : {
"type" : ["string", "null"]
},
"Icon" : { },
"TabName" : {
"type" : ["string", "null"]
},
"Category" : {
"type" : ["string", "null"]
},
"GroupIndex" : {
"type" : "integer"
},
"_t" : {
"type" : "string",
"description" : "Optional type disciminator.",
"const" : "BH.oM.UI.CustomRibbonEntry"
},
"_bhomVersion" : {
"type" : ["string", "null"],
"description" : "Optional version of BHoM used as part of automatic versioning and schema upgrades."
}
},
"required" : ["CallerType", "ItemJson", "Icon", "TabName", "Category", "GroupIndex"]
}
27 changes: 27 additions & 0 deletions UI_oM/CustomRibbonSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"$id" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/UI_oM/CustomRibbonSettings.json",
"title" : "CustomRibbonSettings",
"type" : ["object", "null"],
"properties" : {
"Name" : {
"type" : ["string", "null"]
},
"Entries" : {
"type" : ["array", "null"],
"items" : {
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/UI_oM/CustomRibbonEntry.json"
}
},
"_t" : {
"type" : "string",
"description" : "Optional type disciminator.",
"const" : "BH.oM.UI.CustomRibbonSettings"
},
"_bhomVersion" : {
"type" : ["string", "null"],
"description" : "Optional version of BHoM used as part of automatic versioning and schema upgrades."
}
},
"required" : ["Name", "Entries"]
}
6 changes: 3 additions & 3 deletions UI_oM/SearchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"title" : "SearchSettings",
"type" : ["object", "null"],
"properties" : {
"Toolkits" : {
"ExcludedToolkits" : {
"type" : ["array", "null"],
"items" : {
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/UI_oM/ToolkitSelectItem.json"
"type" : ["string", "null"]
}
},
"_t" : {
Expand All @@ -20,5 +20,5 @@
"description" : "Optional version of BHoM used as part of automatic versioning and schema upgrades."
}
},
"required" : ["Toolkits"]
"required" : ["ExcludedToolkits"]
}