-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
ref: https://gitlab.com/notch8/utk-hyku/-/issues/154
Summary
setting cardinality: maximum: 1 in a metadata profile equates to the property being set as singular. (here’s the allinson_flex code) I think this needs to be updated. (see the "notes" section below for a potential implementation solution)
Acceptance Criteria
- able to import a metadata profile yml that sets the minimum and/or maximum cardinality correctly
- able to import a metadata profile yml that sets the property as singular or multiple correctly
Screenshots or Video
"title" property definition in the metadata profile yml
title:
available_on:
class:
- GenericWork
cardinality:
maximum: 1
minimum: 1
...
Testing Instructions
Notes
- I talked about this with braydon during his office hour and we think that we could add another sub-property field of multi_value that can be true or false. and we could use that field instead to determine if a property should be a string or array. from there, we could hopefully use the maximum value to instead determine the length of the array, if multi_value: true is set.
- if the above path is chosen, this file may be of use.
- details about cardinality: https://github.com/samvera-labs/houndstooth/blob/017dffc285e78191ae6a3058f2a1bb1903c7d362/m3_json_schema.json#L325-L353
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request