@friggframework/schemas 2.0.0--canary.690.08cd07e.0 → 2.0.0--canary.686.45cab16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friggframework/schemas",
3
- "version": "2.0.0--canary.690.08cd07e.0",
3
+ "version": "2.0.0--canary.686.45cab16.0",
4
4
  "description": "Canonical JSON Schema definitions for Frigg Framework",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -41,5 +41,5 @@
41
41
  "middleware/",
42
42
  "index.js"
43
43
  ],
44
- "gitHead": "08cd07ef5720ad7a0d5141a442613d56d82e3730"
44
+ "gitHead": "45cab161a94a4023c0a35a47dbe27a6c559ea25b"
45
45
  }
@@ -106,12 +106,7 @@
106
106
  "required": ["method", "path"],
107
107
  "properties": {
108
108
  "method": { "type": "string", "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"] },
109
- "path": { "type": "string", "pattern": "^/" },
110
- "base": {
111
- "type": "string",
112
- "pattern": "^[a-z][a-z0-9-]*$",
113
- "description": "Which of the module's named bases (baseUrls) the rule applies to. Default 'default'. Must be declared by the module (checked at load)."
114
- }
109
+ "path": { "type": "string", "pattern": "^/" }
115
110
  },
116
111
  "additionalProperties": false
117
112
  }
@@ -122,23 +117,15 @@
122
117
  "items": { "type": "string" }
123
118
  },
124
119
  "baseUrl": {
125
- "description": "Proxy base URL (https). A string, or a function of the Api instance for tenant hosts. Means { default: baseUrl }. Defaults to the Api's baseUrl. Declare this or baseUrls, not both.",
120
+ "description": "Proxy base URL (https). A string, or a function of the Api instance for tenant hosts. Defaults to the Api's baseUrl.",
126
121
  "type": ["string", "object"]
127
122
  },
128
- "baseUrls": {
129
- "type": "object",
130
- "description": "Named proxy base URLs for a module whose API spans several hosts (ADR-052, amendment 1). The proxy request names one in `base`; omitted means 'default'. Strings only, absolute https URLs with no credentials, query or fragment (checked at load). Declare this or baseUrl, not both.",
131
- "minProperties": 1,
132
- "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
133
- "additionalProperties": { "type": "string", "pattern": "^https://" }
134
- },
135
123
  "binary": {
136
124
  "type": "boolean",
137
125
  "default": false,
138
126
  "description": "Return binary upstream bodies base64-encoded instead of refusing them (415)"
139
127
  }
140
128
  },
141
- "not": { "required": ["baseUrl", "baseUrls"] },
142
129
  "additionalProperties": false
143
130
  },
144
131
  "env": {
@@ -20,11 +20,6 @@
20
20
  "pattern": "^/",
21
21
  "minLength": 1
22
22
  },
23
- "base": {
24
- "type": "string",
25
- "pattern": "^[a-z][a-z0-9-]*$",
26
- "description": "Name of one of the module's base URLs (ADR-052 amendment); 'default' when omitted. A name the module declares in proxy.baseUrls, never a URL or host. An unknown name is 400 PROXY_UNKNOWN_BASE; a value that is not shaped like a name is 400 INVALID_PROXY_REQUEST."
27
- },
28
23
  "query": {
29
24
  "type": "object",
30
25
  "description": "Query parameters to include in the request as key-value pairs",
@@ -182,7 +177,6 @@
182
177
  "enum": [
183
178
  "INVALID_PROXY_REQUEST",
184
179
  "PROXY_NOT_ALLOWED",
185
- "PROXY_UNKNOWN_BASE",
186
180
  "PROXY_NOT_CONFIGURED",
187
181
  "PAYLOAD_TOO_LARGE",
188
182
  "UNSUPPORTED_MEDIA_TYPE",
@@ -883,11 +883,6 @@
883
883
  "type": "string",
884
884
  "pattern": "^/",
885
885
  "description": "Path pattern relative to the module's base URL. `:param` matches one segment; a trailing `/**` matches a subtree."
886
- },
887
- "base": {
888
- "type": "string",
889
- "pattern": "^[a-z][a-z0-9-]*$",
890
- "description": "Which of the module's named bases the rule applies to. Default 'default'. A base the module does not declare stops the app at load."
891
886
  }
892
887
  },
893
888
  "additionalProperties": false