@retropak/schema 1.0.0-draft10 → 1.0.0-draft12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retropak/schema",
3
- "version": "1.0.0-draft10",
3
+ "version": "1.0.0-draft12",
4
4
  "description": "Metadata specification for Retropak software containers",
5
5
  "type": "module",
6
6
  "main": "./schemas/v1/retropak.schema.json",
@@ -311,19 +311,22 @@
311
311
  },
312
312
  "mediaType": {
313
313
  "type": "string",
314
- "description": "The format/medium type of the file.",
314
+ "description": "The format/medium type of the file. Note: Files with media types 'bluray', 'cdrom', 'disk_image', 'dvd', 'flash_image', 'gd_rom', 'hdd_image', 'laserdisc', 'optical_disk', and 'umd' MUST use STORE mode (uncompressed) in the ZIP archive to enable efficient random access. Other media types MAY use DEFLATE compression.",
315
315
  "enum": [
316
316
  "archive",
317
317
  "bluray",
318
318
  "cartridge",
319
319
  "cdrom",
320
+ "disk_image",
320
321
  "download",
321
322
  "dvd",
323
+ "flash_image",
322
324
  "floppy",
323
325
  "gd_rom",
324
326
  "hdd_image",
325
327
  "laserdisc",
326
328
  "memory_card",
329
+ "optical_disk",
327
330
  "tape",
328
331
  "umd"
329
332
  ]
@@ -600,28 +603,6 @@
600
603
  }
601
604
  }
602
605
  },
603
- "physicalMediaImage": {
604
- "type": "object",
605
- "description": "An image of physical media (cartridge, disc, tape, etc.).",
606
- "additionalProperties": false,
607
- "required": [
608
- "file"
609
- ],
610
- "properties": {
611
- "file": {
612
- "type": "string",
613
- "minLength": 1,
614
- "description": "Path to the physical media image file."
615
- },
616
- "alt": {
617
- "type": "string",
618
- "description": "Alternative text describing the image for accessibility."
619
- },
620
- "type": {
621
- "$ref": "#/$defs/mediaType"
622
- }
623
- }
624
- },
625
606
  "mediaItem": {
626
607
  "type": "object",
627
608
  "description": "A media file (ROM, disc image, tape, etc.).",
@@ -951,7 +932,7 @@
951
932
  "type": "array",
952
933
  "description": "Images of the physical media (cartridge, disc, tape, floppy, etc.).",
953
934
  "items": {
954
- "$ref": "#/$defs/physicalMediaImage"
935
+ "$ref": "#/$defs/image"
955
936
  }
956
937
  },
957
938
  "logo": {