@objectstack/spec 0.3.1 → 0.3.2

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,142 @@
1
+ {
2
+ "$ref": "#/definitions/ViewData",
3
+ "definitions": {
4
+ "ViewData": {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "provider": {
10
+ "type": "string",
11
+ "const": "object"
12
+ },
13
+ "object": {
14
+ "type": "string",
15
+ "description": "Target object name"
16
+ }
17
+ },
18
+ "required": [
19
+ "provider",
20
+ "object"
21
+ ],
22
+ "additionalProperties": false
23
+ },
24
+ {
25
+ "type": "object",
26
+ "properties": {
27
+ "provider": {
28
+ "type": "string",
29
+ "const": "api"
30
+ },
31
+ "read": {
32
+ "type": "object",
33
+ "properties": {
34
+ "url": {
35
+ "type": "string",
36
+ "description": "API endpoint URL"
37
+ },
38
+ "method": {
39
+ "type": "string",
40
+ "enum": [
41
+ "GET",
42
+ "POST",
43
+ "PUT",
44
+ "PATCH",
45
+ "DELETE"
46
+ ],
47
+ "default": "GET",
48
+ "description": "HTTP method"
49
+ },
50
+ "headers": {
51
+ "type": "object",
52
+ "additionalProperties": {
53
+ "type": "string"
54
+ },
55
+ "description": "Custom HTTP headers"
56
+ },
57
+ "params": {
58
+ "type": "object",
59
+ "additionalProperties": {},
60
+ "description": "Query parameters"
61
+ },
62
+ "body": {
63
+ "description": "Request body for POST/PUT/PATCH"
64
+ }
65
+ },
66
+ "required": [
67
+ "url"
68
+ ],
69
+ "additionalProperties": false,
70
+ "description": "Configuration for fetching data"
71
+ },
72
+ "write": {
73
+ "type": "object",
74
+ "properties": {
75
+ "url": {
76
+ "type": "string",
77
+ "description": "API endpoint URL"
78
+ },
79
+ "method": {
80
+ "type": "string",
81
+ "enum": [
82
+ "GET",
83
+ "POST",
84
+ "PUT",
85
+ "PATCH",
86
+ "DELETE"
87
+ ],
88
+ "default": "GET",
89
+ "description": "HTTP method"
90
+ },
91
+ "headers": {
92
+ "type": "object",
93
+ "additionalProperties": {
94
+ "type": "string"
95
+ },
96
+ "description": "Custom HTTP headers"
97
+ },
98
+ "params": {
99
+ "type": "object",
100
+ "additionalProperties": {},
101
+ "description": "Query parameters"
102
+ },
103
+ "body": {
104
+ "description": "Request body for POST/PUT/PATCH"
105
+ }
106
+ },
107
+ "required": [
108
+ "url"
109
+ ],
110
+ "additionalProperties": false,
111
+ "description": "Configuration for submitting data (for forms/editable tables)"
112
+ }
113
+ },
114
+ "required": [
115
+ "provider"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ {
120
+ "type": "object",
121
+ "properties": {
122
+ "provider": {
123
+ "type": "string",
124
+ "const": "value"
125
+ },
126
+ "items": {
127
+ "type": "array",
128
+ "items": {},
129
+ "description": "Static data array"
130
+ }
131
+ },
132
+ "required": [
133
+ "provider",
134
+ "items"
135
+ ],
136
+ "additionalProperties": false
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ "$schema": "http://json-schema.org/draft-07/schema#"
142
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/spec",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "ObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",