@xyo-network/payload-wrapper
Advanced tools
Comparing version 3.9.14 to 3.9.15
{ | ||
"name": "@xyo-network/payload-wrapper", | ||
"version": "3.9.14", | ||
"version": "3.9.15", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -35,5 +35,5 @@ "homepage": "https://xyo.network", | ||
"@xylabs/promise": "^4.5.1", | ||
"@xyo-network/payload-builder": "^3.9.14", | ||
"@xyo-network/payload-model": "^3.9.14", | ||
"@xyo-network/payload-validator": "^3.9.14", | ||
"@xyo-network/payload-builder": "^3.9.15", | ||
"@xyo-network/payload-model": "^3.9.15", | ||
"@xyo-network/payload-validator": "^3.9.15", | ||
"ajv": "^8.17.1" | ||
@@ -40,0 +40,0 @@ }, |
@@ -1,6 +0,4 @@ | ||
import type { Payload } from '@xyo-network/payload-model' | ||
import { type Payload, SchemaRegEx } from '@xyo-network/payload-model' | ||
import type { JSONSchemaType } from 'ajv' | ||
const SchemaRegEx = String.raw`^((?!-)[a-z0-9-]{1, 63}(?<!-)\.)+$` | ||
export const payloadJsonSchema: JSONSchemaType<Payload> = { | ||
@@ -14,12 +12,4 @@ additionalProperties: true, | ||
}, | ||
$chain: { | ||
properties: { | ||
ops: { | ||
items: { type: 'string' }, type: 'array', nullable: true, | ||
}, | ||
}, | ||
additionalProperties: true, | ||
nullable: true, | ||
required: [], | ||
type: 'object', | ||
$opCodes: { | ||
items: { type: 'string' }, type: 'array', nullable: true, | ||
}, | ||
@@ -26,0 +16,0 @@ schema: { pattern: SchemaRegEx, type: 'string' }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
66699
712