Skip to content

Commit 2d1380b

Browse files
committed
[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 <[email protected]>
1 parent 579e9db commit 2d1380b

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

RELEASE_NOTES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
Release Notes
22
=============
33

4+
v1.0.0-alpha.x
5+
--------------
6+
7+
### Improvements
8+
9+
- Added `ui` and `uiPolicy` options for the `usage` field on traits and
10+
specifications.
11+
[#103](https://github.com/OpenAssetIO/OpenAssetIO-TraitGen/issues/103)
12+
413
v1.0.0-alpha.11
514
--------------
615

16+
### Bug fixes
17+
718
- Reverted change to `kTraitSet` member of Specification classes
819
from using the `frozenset` type back to using the standard `set`. This
920
is for compatibility with pybind11<2.10.

python/openassetio_traitgen/schema.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@
8888
"entity",
8989
"relationship",
9090
"locale",
91-
"managementPolicy"
91+
"managementPolicy",
92+
"ui",
93+
"uiPolicy"
9294
]
9395
}
9496
}
@@ -175,7 +177,9 @@
175177
"entity",
176178
"relationship",
177179
"locale",
178-
"managementPolicy"
180+
"managementPolicy",
181+
"ui",
182+
"uiPolicy"
179183
]
180184
}
181185
}

0 commit comments

Comments
 (0)