From 2d1380b43b5e802baaf07b944b271d377a96c598 Mon Sep 17 00:00:00 2001 From: David Feltell Date: Mon, 10 Mar 2025 14:53:12 +0000 Subject: [PATCH] [Core] Add UI usage options to schema Closes #103. The design for UI delegation makes use of traits to specify the kind of UI that the host wants the delegate to provide. These will be distinct from other usages of traits and specifically for UI. The design includes a uiPolicy introspection method as well as the main populateUI method. So we need two new usage types. So add a ui and uiPolicy usage types for traits and specifications to the YAML schema Signed-off-by: David Feltell --- RELEASE_NOTES.md | 11 +++++++++++ python/openassetio_traitgen/schema.json | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 9e8e762..e10f3d2 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,9 +1,20 @@ Release Notes ============= +v1.0.0-alpha.x +-------------- + +### Improvements + +- Added `ui` and `uiPolicy` options for the `usage` field on traits and + specifications. + [#103](https://github.com/OpenAssetIO/OpenAssetIO-TraitGen/issues/103) + v1.0.0-alpha.11 -------------- +### Bug fixes + - Reverted change to `kTraitSet` member of Specification classes from using the `frozenset` type back to using the standard `set`. This is for compatibility with pybind11<2.10. diff --git a/python/openassetio_traitgen/schema.json b/python/openassetio_traitgen/schema.json index eb9f377..d913c41 100644 --- a/python/openassetio_traitgen/schema.json +++ b/python/openassetio_traitgen/schema.json @@ -88,7 +88,9 @@ "entity", "relationship", "locale", - "managementPolicy" + "managementPolicy", + "ui", + "uiPolicy" ] } } @@ -175,7 +177,9 @@ "entity", "relationship", "locale", - "managementPolicy" + "managementPolicy", + "ui", + "uiPolicy" ] } }