receipt_status.json is of type string, not of type object

Description

receipt_status.json is of type string, not of type object, this has always been correct:

https://github.com/folio-org/acq-models/blob/83966672ed65be84636951f504b9137df6c2ee0f/mod-orders-storage/schemas/receipt_status.json#L4

{ "$schema": "http://json-schema.org/draft-04/schema#", "description": "The purchase order line receipt status", "type": "string", "enum": [ "Awaiting Receipt",

It gets incorrectly linked as type object:

https://github.com/folio-org/acq-models/blob/83966672ed65be84636951f504b9137df6c2ee0f/mod-orders-storage/schemas/receiving_history.json#L77

"poLineReceiptStatus": { "$ref": "receipt_status.json", "description": "The purchase order line receipt status", "type": "object" },

https://github.com/folio-org/acq-models/blob/83966672ed65be84636951f504b9137df6c2ee0f/mod-orders-storage/schemas/po_line.json#L207

"receiptStatus": { "description": "The purchase order line receipt status", "type": "object", "$ref": "receipt_status.json" },

https://github.com/folio-org/acq-models/blob/83966672ed65be84636951f504b9137df6c2ee0f/mod-orders/schemas/composite_po_line.json#L210

"receiptStatus": { "description": "The purchase order line receipt status", "type": "object", "$ref": "../../mod-orders-storage/schemas/receipt_status.json" },

The wrong type is published in the API documentation: https://dev.folio.org/reference/api/

Solution: Fix wrong type.

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Julian Ladisch March 19, 2025 at 12:23 PM

Done

Details

Assignee

Reporter

Priority

Development Team

Thunderjet

Release

Trillium (R2 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created March 19, 2025 at 12:17 PM
Updated last week
Resolved last week
TestRail: Cases
TestRail: Runs

Flag notifications