Summary: | POST /patrons doesn't enforce mandatory extended attributes | ||
---|---|---|---|
Product: | Koha | Reporter: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Component: | REST API | Assignee: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P5 - low | CC: | ephetteplace, jonathan.druart, joonas.kylmala, martin.renvoize |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23666 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 27855, 27857 | ||
Bug Blocks: |
Description
Tomás Cohen Arazi (tcohen)
2021-03-03 17:22:11 UTC
How about an array of extended_attribute objects? "extended_attributes": [ { "type": "whatever", "code": "yup" }, { "type": "another", "code": "top" } ] At least the "Unique identifier" attribute check should be added as well there if it will be possible to add mandatory attribute in the future. And probably the same goes for checking the "Repeatable" attribute property. (In reply to Joonas Kylmälä from comment #2) > At least the "Unique identifier" attribute check should be added as well > there if it will be possible to add mandatory attribute in the future. And > probably the same goes for checking the "Repeatable" attribute property. Yes! That's handled on bug 27857, in which this will rely. |