@pacp/spec 2.0.1 → 3.0.0

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://cdn.jsdelivr.net/npm/@pacp/spec@latest/dist/pacp.schema.json",
4
- "title": "PACP v2.0.1",
4
+ "title": "PACP v3.0.0",
5
5
  "oneOf": [
6
6
  {
7
7
  "$ref": "#/$defs/catalog_document"
@@ -314,8 +314,16 @@
314
314
  "type": "string"
315
315
  },
316
316
  "category": {
317
- "type": "string",
318
- "minLength": 1
317
+ "type": "array",
318
+ "items": {
319
+ "type": "array",
320
+ "items": {
321
+ "type": "string",
322
+ "minLength": 1
323
+ },
324
+ "minItems": 1
325
+ },
326
+ "description": "Categorias hierárquicas do produto. Cada item é um path da raiz à folha, ex.: [[\"Móveis\", \"Sofá\"], [\"Promoções\"]]."
319
327
  },
320
328
  "gtin": {
321
329
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pacp/spec",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "PACP - Padrão Aberto de Catálogo e Precificação. Schema, profiles e validador para catálogos de produtos.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",