Definition JSON
This fragment is shown exactly as published. Use the chevrons to fold objects and arrays; linked $ref values return to their targets in the complete schema.
{ "type": "object",
"additionalProperties": false,
"properties": { "id": { "type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9._:-]*$",
"minLength": 1,
"description": "Record-local stable identifier. IDs are intended to be unique across the complete MatRecordJSON package." },
"name": { "type": "string",
"minLength": 1 },
"roles": { "type": "array",
"items": { "enum": [ "material_manufacturer",
"mill",
"melt_shop",
"processor",
"fabricator",
"forger",
"caster",
"tube_mill",
"supplier",
"distributor",
"seller",
"shipper",
"purchaser",
"customer",
"consignee",
"laboratory",
"inspection_agency",
"third_party_inspector",
"certifier",
"reviewer",
"document_submitter",
"other" ] },
"minItems": 1,
"uniqueItems": true },
"address": { "$ref": "#/$defs/address" },
"identifiers": { "type": "array",
"items": { "$ref": "#/$defs/party_identifier" },
"uniqueItems": true },
"contact": { "type": "object",
"additionalProperties": false,
"properties": { "name": { "type": "string" },
"title": { "type": "string" },
"email": { "type": "string",
"format": "email" },
"phone": { "type": "string" } } },
"evidence_refs": { "type": "array",
"items": { "type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9._:-]*$" },
"minItems": 1,
"uniqueItems": true } },
"required": [ "id",
"name",
"roles",
"evidence_refs" ]}Fields
| Field | Type | Status | Meaning |
|---|---|---|---|
id | string — pattern ^[A-Za-z][A-Za-z0-9._:-]*$ | Required | Record-local stable identifier. IDs are intended to be unique across the complete MatRecordJSON package. |
name | string | Required | Name used by this schema object. |
roles | array — at least 1 item(s) | Required | Roles used by this schema object. |
address | Address | Optional | Address used by this schema object. |
identifiers | array | Optional | Identifiers used by this schema object. |
contact | object | Optional | Contact used by this schema object. |
evidence_refs | array — at least 1 item(s) | Required | Evidence refs used by this schema object. |