@cbjk_iris/schema 0.0.0-stage → 0.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.
@@ -0,0 +1,157 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string",
7
+ "description": "Caminho do JSON Schema (autocomplete no editor)"
8
+ },
9
+ "name": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "title": "Nome"
13
+ },
14
+ "shortDescription": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "title": "Descrição curta"
18
+ },
19
+ "description": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "title": "Descrição completa"
23
+ },
24
+ "images": {
25
+ "minItems": 1,
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string"
29
+ },
30
+ "description": "A primeira é a capa",
31
+ "title": "Imagens"
32
+ },
33
+ "specs": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "object",
37
+ "properties": {
38
+ "label": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "title": "Nome",
42
+ "examples": [
43
+ "Material"
44
+ ]
45
+ },
46
+ "value": {
47
+ "type": "string",
48
+ "minLength": 1,
49
+ "title": "Valor",
50
+ "examples": [
51
+ "Silicone"
52
+ ]
53
+ }
54
+ },
55
+ "required": [
56
+ "label",
57
+ "value"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ "title": "Especificações"
62
+ },
63
+ "order": {
64
+ "type": "integer",
65
+ "minimum": 0,
66
+ "maximum": 9007199254740991,
67
+ "title": "Ordem"
68
+ },
69
+ "category": {
70
+ "type": "string",
71
+ "minLength": 1,
72
+ "title": "Categoria"
73
+ },
74
+ "price": {
75
+ "type": "number",
76
+ "minimum": 0,
77
+ "title": "Preço à vista"
78
+ },
79
+ "originalPrice": {
80
+ "type": "number",
81
+ "exclusiveMinimum": 0,
82
+ "title": "Preço original"
83
+ },
84
+ "installment": {
85
+ "type": "object",
86
+ "properties": {
87
+ "count": {
88
+ "type": "integer",
89
+ "exclusiveMinimum": 0,
90
+ "maximum": 9007199254740991,
91
+ "title": "Parcelas"
92
+ },
93
+ "value": {
94
+ "type": "number",
95
+ "exclusiveMinimum": 0,
96
+ "title": "Valor da parcela"
97
+ },
98
+ "hasInterest": {
99
+ "type": "boolean",
100
+ "title": "Com juros"
101
+ }
102
+ },
103
+ "required": [
104
+ "count",
105
+ "value"
106
+ ],
107
+ "additionalProperties": false,
108
+ "title": "Parcelamento"
109
+ },
110
+ "stockQty": {
111
+ "type": "integer",
112
+ "minimum": 0,
113
+ "maximum": 9007199254740991,
114
+ "description": "0 = sob encomenda",
115
+ "title": "Estoque"
116
+ },
117
+ "whatsappButton": {
118
+ "default": true,
119
+ "type": "boolean",
120
+ "title": "Botão do WhatsApp"
121
+ },
122
+ "mercadoLivreLink": {
123
+ "type": "string",
124
+ "maxLength": 2048,
125
+ "pattern": "^https:\\/\\/",
126
+ "title": "Link do Mercado Livre"
127
+ },
128
+ "shopeeLink": {
129
+ "type": "string",
130
+ "maxLength": 2048,
131
+ "pattern": "^https:\\/\\/",
132
+ "title": "Link da Shopee"
133
+ },
134
+ "amazonLink": {
135
+ "type": "string",
136
+ "maxLength": 2048,
137
+ "pattern": "^https:\\/\\/",
138
+ "title": "Link da Amazon"
139
+ },
140
+ "externalLink": {
141
+ "type": "string",
142
+ "maxLength": 2048,
143
+ "pattern": "^https:\\/\\/",
144
+ "title": "Link de outra loja"
145
+ }
146
+ },
147
+ "required": [
148
+ "name",
149
+ "shortDescription",
150
+ "description",
151
+ "images",
152
+ "category",
153
+ "price",
154
+ "stockQty"
155
+ ],
156
+ "additionalProperties": false
157
+ }