[FOLIO-1299] Add valid language codes as an enum to Instance record JSON Schema Created: 21/Jun/18  Updated: 18/Jan/19

Status: Open
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: New Feature Priority: P3
Reporter: Theodor Tolstoy (One-Group.se) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to UIIN-321 Instances with non-existing language ... Closed
Sprint:
Development Team: Core: Platform

 Description   

When reporting UIIN-321 Closed I looked around some and realized that we use enums in the Instance JSON schema (https://github.com/folio-org/raml/blob/master/schemas/codex/instance.json) for types. Could we add the valid language codes for the languages property as well?

I think it would make validating Instance records a bit easier.



 Comments   
Comment by Cate Boerema (Inactive) [ 21/Jun/18 ]

Thanks, Theodor Tolstoy (One-Group.se). Trying to find the best person to direct this inquiry to. Niels Erik Nielsen, does this mean something to you?

Comment by Cate Boerema (Inactive) [ 21/Jun/18 ]

Oh, I see. This looks like a proposed solution to this bug: UIIN-321 Closed

Comment by Theodor Tolstoy (One-Group.se) [ 21/Jun/18 ]

Well, sort of, but in any way, the UI should not crash like that. In my opinion

Comment by Niels Erik Nielsen [ 29/Jun/18 ]

Agreed that it should not be implemented the current way in the long run. The language codes resides in a JavaScript file in the client, but that's a temporary solution.

Language codes will eventually be stored in the database like most other reference data - for example in order to be able to update them by data loader scripts.

An enum would be one way to do it, though we have considered that approach for other reference data, then shied away from it. Maybe language codes are different.

Generated at Thu Feb 08 23:12:18 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.