npm package diff
Package: @forge/manifest
Versions: 9.5.0-next.5 - 9.5.0-next.6
File: package/out/schema/manifest-schema.json
Index: package/out/schema/manifest-schema.json
===================================================================
--- package/out/schema/manifest-schema.json
+++ package/out/schema/manifest-schema.json
@@ -626,8 +626,68 @@
"type": "object"
},
"minItems": 1
},
+ "apiRoute": {
+ "type": "array",
+ "items": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The URL path for the API endpoint",
+ "pattern": "^/[a-zA-Z0-9]+(/[a-zA-Z0-9]+|/\\*)*$",
+ "minLength": 1,
+ "maxLength": 255
+ },
+ "operation": {
+ "type": "string",
+ "description": "HTTP method for the API endpoint",
+ "enum": [
+ "GET",
+ "POST",
+ "PUT",
+ "DELETE",
+ "PATCH"
+ ]
+ },
+ "function": {
+ "$ref": "#/definitions/ExtensionKey",
+ "description": "The key of the function that should be invoked for this API route",
+ "title": "function",
+ "type": "string"
+ },
+ "accept": {
+ "type": "array",
+ "description": "List of accepted content types for the API route",
+ "items": {
+ "type": "string",
+ "enum": [
+ "application/json"
+ ]
+ },
+ "minItems": 1
+ },
+ "key": {
+ "$ref": "#/definitions/ModuleKeySchema"
+ }
+ },
+ "required": [
+ "path",
+ "operation",
+ "function",
+ "key"
+ ],
+ "not": {
+ "required": [
+ "unlicensedAccess"
+ ]
+ }
+ },
+ "minItems": 1
+ },
"consumer": {
"type": "array",
"items": {
"$schema": "http://json-schema.org/draft-07/schema#",