@open-rpc/meta-schema
Advanced tools
Comparing version 1.14.2 to 1.14.3
@@ -1,2 +0,2 @@ | ||
export type Openrpc = "1.2.6" | "1.2.5" | "1.2.4" | "1.2.3" | "1.2.2" | "1.2.1" | "1.2.0" | "1.1.12" | "1.1.11" | "1.1.10" | "1.1.9" | "1.1.8" | "1.1.7" | "1.1.6" | "1.1.5" | "1.1.4" | "1.1.3" | "1.1.2" | "1.1.1" | "1.1.0" | "1.0.0" | "1.0.0-rc1" | "1.0.0-rc0"; | ||
export type Openrpc = "1.3.0" | "1.2.6" | "1.2.5" | "1.2.4" | "1.2.3" | "1.2.2" | "1.2.1" | "1.2.0" | "1.1.12" | "1.1.11" | "1.1.10" | "1.1.9" | "1.1.8" | "1.1.7" | "1.1.6" | "1.1.5" | "1.1.4" | "1.1.3" | "1.1.2" | "1.1.1" | "1.1.0" | "1.0.0" | "1.0.0-rc1" | "1.0.0-rc0"; | ||
export type InfoObjectProperties = string; | ||
@@ -67,2 +67,3 @@ export type InfoObjectDescription = string; | ||
} | ||
type AlwaysFalse = any; | ||
export type Servers = ServerObject[]; | ||
@@ -128,3 +129,3 @@ /** | ||
export type Pattern = string; | ||
export type SchemaArray = JSONSchema[]; | ||
export type SchemaArray = Undefined[]; | ||
/** | ||
@@ -135,3 +136,3 @@ * | ||
*/ | ||
export type Items = JSONSchema | SchemaArray; | ||
export type Items = Undefined | SchemaArray; | ||
export type UniqueItems = boolean; | ||
@@ -163,3 +164,3 @@ export type StringDoaGddGA = string; | ||
export interface PatternProperties { [key: string]: any; } | ||
export type DependenciesSet = JSONSchema | StringArray; | ||
export type DependenciesSet = Undefined | StringArray; | ||
export interface Dependencies { [key: string]: any; } | ||
@@ -191,3 +192,3 @@ export type Enum = AlwaysTrue[]; | ||
pattern?: Pattern; | ||
additionalItems?: JSONSchema; | ||
additionalItems?: Undefined; | ||
items?: Items; | ||
@@ -197,7 +198,7 @@ maxItems?: NonNegativeInteger; | ||
uniqueItems?: UniqueItems; | ||
contains?: JSONSchema; | ||
contains?: Undefined; | ||
maxProperties?: NonNegativeInteger; | ||
minProperties?: NonNegativeIntegerDefaultZero; | ||
required?: StringArray; | ||
additionalProperties?: JSONSchema; | ||
additionalProperties?: Undefined; | ||
definitions?: Definitions; | ||
@@ -207,3 +208,3 @@ properties?: Properties; | ||
dependencies?: Dependencies; | ||
propertyNames?: JSONSchema; | ||
propertyNames?: Undefined; | ||
const?: AlwaysTrue; | ||
@@ -215,9 +216,9 @@ enum?: Enum; | ||
contentEncoding?: ContentEncoding; | ||
if?: JSONSchema; | ||
then?: JSONSchema; | ||
else?: JSONSchema; | ||
if?: Undefined; | ||
then?: Undefined; | ||
else?: Undefined; | ||
allOf?: SchemaArray; | ||
anyOf?: SchemaArray; | ||
oneOf?: SchemaArray; | ||
not?: JSONSchema; | ||
not?: Undefined; | ||
[k: string]: any; | ||
@@ -243,3 +244,3 @@ } | ||
summary?: ContentDescriptorObjectSummary; | ||
schema: JSONSchema; | ||
schema: Undefined; | ||
required?: ContentDescriptorObjectRequired; | ||
@@ -345,3 +346,3 @@ deprecated?: ContentDescriptorObjectDeprecated; | ||
params: MethodObjectParams; | ||
result: MethodObjectResult; | ||
result?: MethodObjectResult; | ||
errors?: MethodObjectErrors; | ||
@@ -373,2 +374,10 @@ links?: MethodObjectLinks; | ||
} | ||
/** | ||
* | ||
* JSON Schema URI (used by some editors) | ||
* | ||
* @default https://meta.open-rpc.org/ | ||
* | ||
*/ | ||
export type StringPBC4JHUy = string; | ||
export interface OpenrpcDocument { | ||
@@ -381,3 +390,4 @@ openrpc: Openrpc; | ||
components?: Components; | ||
$schema?: StringPBC4JHUy; | ||
[regex: string]: SpecificationExtension | any; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.openrpcDocument = void 0; | ||
exports.openrpcDocument = { "$schema": "https://meta.json-schema.tools/", "$id": "https://meta.open-rpc.org/", "title": "openrpcDocument", "type": "object", "required": ["info", "methods", "openrpc"], "additionalProperties": false, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } }, "properties": { "openrpc": { "$ref": "#/definitions/openrpc" }, "info": { "$ref": "#/definitions/infoObject" }, "externalDocs": { "$ref": "#/definitions/externalDocumentationObject" }, "servers": { "$ref": "#/definitions/servers" }, "methods": { "$ref": "#/definitions/methods" }, "components": { "$ref": "#/definitions/components" } }, "definitions": { "openrpc": { "title": "openrpc", "type": "string", "enum": ["1.2.6", "1.2.5", "1.2.4", "1.2.3", "1.2.2", "1.2.1", "1.2.0", "1.1.12", "1.1.11", "1.1.10", "1.1.9", "1.1.8", "1.1.7", "1.1.6", "1.1.5", "1.1.4", "1.1.3", "1.1.2", "1.1.1", "1.1.0", "1.0.0", "1.0.0-rc1", "1.0.0-rc0"] }, "infoObjectProperties": { "title": "infoObjectProperties", "type": "string" }, "infoObjectDescription": { "title": "infoObjectDescription", "type": "string" }, "infoObjectTermsOfService": { "title": "infoObjectTermsOfService", "type": "string", "format": "uri" }, "infoObjectVersion": { "title": "infoObjectVersion", "type": "string" }, "contactObjectName": { "title": "contactObjectName", "type": "string" }, "contactObjectEmail": { "title": "contactObjectEmail", "type": "string" }, "contactObjectUrl": { "title": "contactObjectUrl", "type": "string" }, "specificationExtension": { "title": "specificationExtension" }, "contactObject": { "title": "contactObject", "type": "object", "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/contactObjectName" }, "email": { "$ref": "#/definitions/contactObjectEmail" }, "url": { "$ref": "#/definitions/contactObjectUrl" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "licenseObjectName": { "title": "licenseObjectName", "type": "string" }, "licenseObjectUrl": { "title": "licenseObjectUrl", "type": "string" }, "licenseObject": { "title": "licenseObject", "type": "object", "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/licenseObjectName" }, "url": { "$ref": "#/definitions/licenseObjectUrl" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "infoObject": { "title": "infoObject", "type": "object", "additionalProperties": false, "required": ["title", "version"], "properties": { "title": { "$ref": "#/definitions/infoObjectProperties" }, "description": { "$ref": "#/definitions/infoObjectDescription" }, "termsOfService": { "$ref": "#/definitions/infoObjectTermsOfService" }, "version": { "$ref": "#/definitions/infoObjectVersion" }, "contact": { "$ref": "#/definitions/contactObject" }, "license": { "$ref": "#/definitions/licenseObject" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "externalDocumentationObjectDescription": { "title": "externalDocumentationObjectDescription", "type": "string" }, "externalDocumentationObjectUrl": { "title": "externalDocumentationObjectUrl", "type": "string", "format": "uri" }, "externalDocumentationObject": { "title": "externalDocumentationObject", "type": "object", "additionalProperties": false, "description": "information about external documentation", "required": ["url"], "properties": { "description": { "$ref": "#/definitions/externalDocumentationObjectDescription" }, "url": { "$ref": "#/definitions/externalDocumentationObjectUrl" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "serverObjectUrl": { "title": "serverObjectUrl", "type": "string", "format": "uri" }, "serverObjectName": { "title": "serverObjectName", "type": "string" }, "serverObjectDescription": { "title": "serverObjectDescription", "type": "string" }, "serverObjectSummary": { "title": "serverObjectSummary", "type": "string" }, "serverObjectVariableDefault": { "title": "serverObjectVariableDefault", "type": "string" }, "serverObjectVariableDescription": { "title": "serverObjectVariableDescription", "type": "string" }, "serverObjectVariableEnumItem": { "title": "serverObjectVariableEnumItem", "type": "string" }, "serverObjectVariableEnum": { "title": "serverObjectVariableEnum", "type": "array", "items": { "$ref": "#/definitions/serverObjectVariableEnumItem" } }, "serverObjectVariable": { "title": "serverObjectVariable", "type": "object", "required": ["default"], "properties": { "default": { "$ref": "#/definitions/serverObjectVariableDefault" }, "description": { "$ref": "#/definitions/serverObjectVariableDescription" }, "enum": { "$ref": "#/definitions/serverObjectVariableEnum" } } }, "serverObjectVariables": { "title": "serverObjectVariables", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/serverObjectVariable" } } }, "serverObject": { "title": "serverObject", "type": "object", "required": ["url"], "additionalProperties": false, "properties": { "url": { "$ref": "#/definitions/serverObjectUrl" }, "name": { "$ref": "#/definitions/serverObjectName" }, "description": { "$ref": "#/definitions/serverObjectDescription" }, "summary": { "$ref": "#/definitions/serverObjectSummary" }, "variables": { "$ref": "#/definitions/serverObjectVariables" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "servers": { "title": "servers", "type": "array", "additionalItems": false, "items": { "$ref": "#/definitions/serverObject" } }, "methodObjectName": { "title": "methodObjectName", "description": "The cannonical name for the method. The name MUST be unique within the methods array.", "type": "string", "minLength": 1 }, "methodObjectDescription": { "title": "methodObjectDescription", "description": "A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation.", "type": "string" }, "methodObjectSummary": { "title": "methodObjectSummary", "description": "A short summary of what the method does.", "type": "string" }, "tagObjectName": { "title": "tagObjectName", "type": "string", "minLength": 1 }, "tagObjectDescription": { "title": "tagObjectDescription", "type": "string" }, "tagObject": { "title": "tagObject", "type": "object", "additionalProperties": false, "required": ["name"], "properties": { "name": { "$ref": "#/definitions/tagObjectName" }, "description": { "$ref": "#/definitions/tagObjectDescription" }, "externalDocs": { "$ref": "#/definitions/externalDocumentationObject" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "$ref": { "title": "$ref", "type": "string", "format": "uri-reference" }, "referenceObject": { "title": "referenceObject", "type": "object", "additionalProperties": false, "required": ["$ref"], "properties": { "$ref": { "$ref": "#/definitions/$ref" } } }, "tagOrReference": { "title": "tagOrReference", "oneOf": [{ "$ref": "#/definitions/tagObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectTags": { "title": "methodObjectTags", "type": "array", "items": { "$ref": "#/definitions/tagOrReference" } }, "methodObjectParamStructure": { "title": "methodObjectParamStructure", "type": "string", "description": "Format the server expects the params. Defaults to 'either'.", "enum": ["by-position", "by-name", "either"], "default": "either" }, "contentDescriptorObjectName": { "title": "contentDescriptorObjectName", "type": "string", "minLength": 1 }, "contentDescriptorObjectDescription": { "title": "contentDescriptorObjectDescription", "type": "string" }, "contentDescriptorObjectSummary": { "title": "contentDescriptorObjectSummary", "type": "string" }, "$id": { "title": "$id", "type": "string", "format": "uri-reference" }, "$schema": { "title": "$schema", "type": "string", "format": "uri" }, "$comment": { "title": "$comment", "type": "string" }, "title": { "title": "title", "type": "string" }, "description": { "title": "description", "type": "string" }, "AlwaysTrue": true, "readOnly": { "title": "readOnly", "type": "boolean", "default": false }, "examples": { "title": "examples", "type": "array", "items": true }, "multipleOf": { "title": "multipleOf", "type": "number", "exclusiveMinimum": 0 }, "maximum": { "title": "maximum", "type": "number" }, "exclusiveMaximum": { "title": "exclusiveMaximum", "type": "number" }, "minimum": { "title": "minimum", "type": "number" }, "exclusiveMinimum": { "title": "exclusiveMinimum", "type": "number" }, "nonNegativeInteger": { "title": "nonNegativeInteger", "type": "integer", "minimum": 0 }, "nonNegativeIntegerDefaultZero": { "title": "nonNegativeIntegerDefaultZero", "type": "integer", "minimum": 0, "default": 0 }, "pattern": { "title": "pattern", "type": "string", "format": "regex" }, "schemaArray": { "title": "schemaArray", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/JSONSchema" } }, "items": { "title": "items", "anyOf": [{ "$ref": "#/definitions/JSONSchema" }, { "$ref": "#/definitions/schemaArray" }], "default": true }, "uniqueItems": { "title": "uniqueItems", "type": "boolean", "default": false }, "string_doaGddGA": { "type": "string", "title": "string_doaGddGA" }, "stringArray": { "title": "stringArray", "type": "array", "items": { "$ref": "#/definitions/string_doaGddGA" }, "uniqueItems": true, "default": [] }, "definitions": { "title": "definitions", "type": "object", "additionalProperties": { "$ref": "#/definitions/JSONSchema" }, "default": {} }, "properties": { "title": "properties", "type": "object", "additionalProperties": { "$ref": "#/definitions/JSONSchema" }, "default": {} }, "patternProperties": { "title": "patternProperties", "type": "object", "additionalProperties": { "$ref": "#/definitions/JSONSchema" }, "propertyNames": { "title": "propertyNames", "format": "regex" }, "default": {} }, "dependenciesSet": { "title": "dependenciesSet", "anyOf": [{ "$ref": "#/definitions/JSONSchema" }, { "$ref": "#/definitions/stringArray" }] }, "dependencies": { "title": "dependencies", "type": "object", "additionalProperties": { "$ref": "#/definitions/dependenciesSet" } }, "enum": { "title": "enum", "type": "array", "items": true, "minItems": 1, "uniqueItems": true }, "simpleTypes": { "title": "simpleTypes", "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] }, "arrayOfSimpleTypes": { "title": "arrayOfSimpleTypes", "type": "array", "items": { "$ref": "#/definitions/simpleTypes" }, "minItems": 1, "uniqueItems": true }, "type": { "title": "type", "anyOf": [{ "$ref": "#/definitions/simpleTypes" }, { "$ref": "#/definitions/arrayOfSimpleTypes" }] }, "format": { "title": "format", "type": "string" }, "contentMediaType": { "title": "contentMediaType", "type": "string" }, "contentEncoding": { "title": "contentEncoding", "type": "string" }, "JSONSchemaObject": { "title": "JSONSchemaObject", "type": "object", "properties": { "$id": { "$ref": "#/definitions/$id" }, "$schema": { "$ref": "#/definitions/$schema" }, "$ref": { "$ref": "#/definitions/$ref" }, "$comment": { "$ref": "#/definitions/$comment" }, "title": { "$ref": "#/definitions/title" }, "description": { "$ref": "#/definitions/description" }, "default": true, "readOnly": { "$ref": "#/definitions/readOnly" }, "examples": { "$ref": "#/definitions/examples" }, "multipleOf": { "$ref": "#/definitions/multipleOf" }, "maximum": { "$ref": "#/definitions/maximum" }, "exclusiveMaximum": { "$ref": "#/definitions/exclusiveMaximum" }, "minimum": { "$ref": "#/definitions/minimum" }, "exclusiveMinimum": { "$ref": "#/definitions/exclusiveMinimum" }, "maxLength": { "$ref": "#/definitions/nonNegativeInteger" }, "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "pattern": { "$ref": "#/definitions/pattern" }, "additionalItems": { "$ref": "#/definitions/JSONSchema" }, "items": { "$ref": "#/definitions/items" }, "maxItems": { "$ref": "#/definitions/nonNegativeInteger" }, "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "uniqueItems": { "$ref": "#/definitions/uniqueItems" }, "contains": { "$ref": "#/definitions/JSONSchema" }, "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" }, "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "required": { "$ref": "#/definitions/stringArray" }, "additionalProperties": { "$ref": "#/definitions/JSONSchema" }, "definitions": { "$ref": "#/definitions/definitions" }, "properties": { "$ref": "#/definitions/properties" }, "patternProperties": { "$ref": "#/definitions/patternProperties" }, "dependencies": { "$ref": "#/definitions/dependencies" }, "propertyNames": { "$ref": "#/definitions/JSONSchema" }, "const": true, "enum": { "$ref": "#/definitions/enum" }, "type": { "$ref": "#/definitions/type" }, "format": { "$ref": "#/definitions/format" }, "contentMediaType": { "$ref": "#/definitions/contentMediaType" }, "contentEncoding": { "$ref": "#/definitions/contentEncoding" }, "if": { "$ref": "#/definitions/JSONSchema" }, "then": { "$ref": "#/definitions/JSONSchema" }, "else": { "$ref": "#/definitions/JSONSchema" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#/definitions/JSONSchema" } } }, "JSONSchemaBoolean": { "title": "JSONSchemaBoolean", "description": "Always valid if true. Never valid if false. Is constant.", "type": "boolean" }, "JSONSchema": { "$schema": "https://meta.json-schema.tools/", "$id": "https://meta.json-schema.tools/", "title": "JSONSchema", "default": {}, "oneOf": [{ "$ref": "#/definitions/JSONSchemaObject" }, { "$ref": "#/definitions/JSONSchemaBoolean" }] }, "contentDescriptorObjectRequired": { "title": "contentDescriptorObjectRequired", "type": "boolean", "default": false }, "contentDescriptorObjectDeprecated": { "title": "contentDescriptorObjectDeprecated", "type": "boolean", "default": false }, "contentDescriptorObject": { "title": "contentDescriptorObject", "type": "object", "additionalProperties": false, "required": ["name", "schema"], "properties": { "name": { "$ref": "#/definitions/contentDescriptorObjectName" }, "description": { "$ref": "#/definitions/contentDescriptorObjectDescription" }, "summary": { "$ref": "#/definitions/contentDescriptorObjectSummary" }, "schema": { "$ref": "#/definitions/JSONSchema" }, "required": { "$ref": "#/definitions/contentDescriptorObjectRequired" }, "deprecated": { "$ref": "#/definitions/contentDescriptorObjectDeprecated" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "contentDescriptorOrReference": { "title": "contentDescriptorOrReference", "oneOf": [{ "$ref": "#/definitions/contentDescriptorObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectParams": { "title": "methodObjectParams", "type": "array", "items": { "$ref": "#/definitions/contentDescriptorOrReference" } }, "methodObjectResult": { "title": "methodObjectResult", "oneOf": [{ "$ref": "#/definitions/contentDescriptorObject" }, { "$ref": "#/definitions/referenceObject" }] }, "errorObjectCode": { "title": "errorObjectCode", "description": "A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api.", "type": "integer" }, "errorObjectMessage": { "title": "errorObjectMessage", "description": "A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.", "type": "string" }, "errorObjectData": { "title": "errorObjectData", "description": "A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)." }, "errorObject": { "title": "errorObject", "type": "object", "description": "Defines an application level error.", "additionalProperties": false, "required": ["code", "message"], "properties": { "code": { "$ref": "#/definitions/errorObjectCode" }, "message": { "$ref": "#/definitions/errorObjectMessage" }, "data": { "$ref": "#/definitions/errorObjectData" } } }, "errorOrReference": { "title": "errorOrReference", "oneOf": [{ "$ref": "#/definitions/errorObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectErrors": { "title": "methodObjectErrors", "description": "Defines an application level error.", "type": "array", "items": { "$ref": "#/definitions/errorOrReference" } }, "linkObjectName": { "title": "linkObjectName", "type": "string", "minLength": 1 }, "linkObjectSummary": { "title": "linkObjectSummary", "type": "string" }, "linkObjectMethod": { "title": "linkObjectMethod", "type": "string" }, "linkObjectDescription": { "title": "linkObjectDescription", "type": "string" }, "linkObjectParams": { "title": "linkObjectParams" }, "linkObjectServer": { "title": "linkObjectServer", "type": "object", "required": ["url"], "additionalProperties": false, "properties": { "url": { "$ref": "#/definitions/serverObjectUrl" }, "name": { "$ref": "#/definitions/serverObjectName" }, "description": { "$ref": "#/definitions/serverObjectDescription" }, "summary": { "$ref": "#/definitions/serverObjectSummary" }, "variables": { "$ref": "#/definitions/serverObjectVariables" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "linkObject": { "title": "linkObject", "type": "object", "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/linkObjectName" }, "summary": { "$ref": "#/definitions/linkObjectSummary" }, "method": { "$ref": "#/definitions/linkObjectMethod" }, "description": { "$ref": "#/definitions/linkObjectDescription" }, "params": { "$ref": "#/definitions/linkObjectParams" }, "server": { "$ref": "#/definitions/linkObjectServer" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "linkOrReference": { "title": "linkOrReference", "oneOf": [{ "$ref": "#/definitions/linkObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectLinks": { "title": "methodObjectLinks", "type": "array", "items": { "$ref": "#/definitions/linkOrReference" } }, "examplePairingObjectName": { "title": "examplePairingObjectName", "type": "string", "minLength": 1 }, "examplePairingObjectDescription": { "title": "examplePairingObjectDescription", "type": "string" }, "exampleObjectSummary": { "title": "exampleObjectSummary", "type": "string" }, "exampleObjectValue": { "title": "exampleObjectValue" }, "exampleObjectDescription": { "title": "exampleObjectDescription", "type": "string" }, "exampleObjectName": { "title": "exampleObjectName", "type": "string", "minLength": 1 }, "exampleObject": { "title": "exampleObject", "type": "object", "required": ["name", "value"], "properties": { "summary": { "$ref": "#/definitions/exampleObjectSummary" }, "value": { "$ref": "#/definitions/exampleObjectValue" }, "description": { "$ref": "#/definitions/exampleObjectDescription" }, "name": { "$ref": "#/definitions/exampleObjectName" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "exampleOrReference": { "title": "exampleOrReference", "oneOf": [{ "$ref": "#/definitions/exampleObject" }, { "$ref": "#/definitions/referenceObject" }] }, "examplePairingObjectParams": { "title": "examplePairingObjectParams", "type": "array", "items": { "$ref": "#/definitions/exampleOrReference" } }, "examplePairingObjectResult": { "title": "examplePairingObjectResult", "oneOf": [{ "$ref": "#/definitions/exampleObject" }, { "$ref": "#/definitions/referenceObject" }] }, "examplePairingObject": { "title": "examplePairingObject", "type": "object", "required": ["name", "params", "result"], "properties": { "name": { "$ref": "#/definitions/examplePairingObjectName" }, "description": { "$ref": "#/definitions/examplePairingObjectDescription" }, "params": { "$ref": "#/definitions/examplePairingObjectParams" }, "result": { "$ref": "#/definitions/examplePairingObjectResult" } } }, "examplePairingOrReference": { "title": "examplePairingOrReference", "oneOf": [{ "$ref": "#/definitions/examplePairingObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectExamples": { "title": "methodObjectExamples", "type": "array", "items": { "$ref": "#/definitions/examplePairingOrReference" } }, "methodObjectDeprecated": { "title": "methodObjectDeprecated", "type": "boolean", "default": false }, "methodObject": { "title": "methodObject", "type": "object", "required": ["name", "result", "params"], "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/methodObjectName" }, "description": { "$ref": "#/definitions/methodObjectDescription" }, "summary": { "$ref": "#/definitions/methodObjectSummary" }, "servers": { "$ref": "#/definitions/servers" }, "tags": { "$ref": "#/definitions/methodObjectTags" }, "paramStructure": { "$ref": "#/definitions/methodObjectParamStructure" }, "params": { "$ref": "#/definitions/methodObjectParams" }, "result": { "$ref": "#/definitions/methodObjectResult" }, "errors": { "$ref": "#/definitions/methodObjectErrors" }, "links": { "$ref": "#/definitions/methodObjectLinks" }, "examples": { "$ref": "#/definitions/methodObjectExamples" }, "deprecated": { "$ref": "#/definitions/methodObjectDeprecated" }, "externalDocs": { "$ref": "#/definitions/externalDocumentationObject" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "methodOrReference": { "title": "methodOrReference", "oneOf": [{ "$ref": "#/definitions/methodObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methods": { "title": "methods", "type": "array", "additionalItems": false, "items": { "$ref": "#/definitions/methodOrReference" } }, "schemaComponents": { "title": "schemaComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/JSONSchema" } } }, "linkComponents": { "title": "linkComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/linkObject" } } }, "errorComponents": { "title": "errorComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/errorObject" } } }, "exampleComponents": { "title": "exampleComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/exampleObject" } } }, "examplePairingComponents": { "title": "examplePairingComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/examplePairingObject" } } }, "contentDescriptorComponents": { "title": "contentDescriptorComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/contentDescriptorObject" } } }, "tagComponents": { "title": "tagComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/tagObject" } } }, "components": { "title": "components", "type": "object", "properties": { "schemas": { "$ref": "#/definitions/schemaComponents" }, "links": { "$ref": "#/definitions/linkComponents" }, "errors": { "$ref": "#/definitions/errorComponents" }, "examples": { "$ref": "#/definitions/exampleComponents" }, "examplePairings": { "$ref": "#/definitions/examplePairingComponents" }, "contentDescriptors": { "$ref": "#/definitions/contentDescriptorComponents" }, "tags": { "$ref": "#/definitions/tagComponents" } } } } }; | ||
exports.openrpcDocument = { "$schema": "https://meta.json-schema.tools/", "$id": "https://meta.open-rpc.org/", "title": "openrpcDocument", "type": "object", "required": ["info", "methods", "openrpc"], "additionalProperties": false, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } }, "properties": { "openrpc": { "$ref": "#/definitions/openrpc" }, "info": { "$ref": "#/definitions/infoObject" }, "externalDocs": { "$ref": "#/definitions/externalDocumentationObject" }, "servers": { "$ref": "#/definitions/servers" }, "methods": { "$ref": "#/definitions/methods" }, "components": { "$ref": "#/definitions/components" }, "$schema": { "$ref": "#/definitions/string_PBC4jHUy" } }, "definitions": { "openrpc": { "title": "openrpc", "type": "string", "enum": ["1.3.0", "1.2.6", "1.2.5", "1.2.4", "1.2.3", "1.2.2", "1.2.1", "1.2.0", "1.1.12", "1.1.11", "1.1.10", "1.1.9", "1.1.8", "1.1.7", "1.1.6", "1.1.5", "1.1.4", "1.1.3", "1.1.2", "1.1.1", "1.1.0", "1.0.0", "1.0.0-rc1", "1.0.0-rc0"] }, "infoObjectProperties": { "title": "infoObjectProperties", "type": "string" }, "infoObjectDescription": { "title": "infoObjectDescription", "type": "string" }, "infoObjectTermsOfService": { "title": "infoObjectTermsOfService", "type": "string", "format": "uri" }, "infoObjectVersion": { "title": "infoObjectVersion", "type": "string" }, "contactObjectName": { "title": "contactObjectName", "type": "string" }, "contactObjectEmail": { "title": "contactObjectEmail", "type": "string" }, "contactObjectUrl": { "title": "contactObjectUrl", "type": "string" }, "specificationExtension": { "title": "specificationExtension" }, "contactObject": { "title": "contactObject", "type": "object", "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/contactObjectName" }, "email": { "$ref": "#/definitions/contactObjectEmail" }, "url": { "$ref": "#/definitions/contactObjectUrl" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "licenseObjectName": { "title": "licenseObjectName", "type": "string" }, "licenseObjectUrl": { "title": "licenseObjectUrl", "type": "string" }, "licenseObject": { "title": "licenseObject", "type": "object", "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/licenseObjectName" }, "url": { "$ref": "#/definitions/licenseObjectUrl" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "infoObject": { "title": "infoObject", "type": "object", "additionalProperties": false, "required": ["title", "version"], "properties": { "title": { "$ref": "#/definitions/infoObjectProperties" }, "description": { "$ref": "#/definitions/infoObjectDescription" }, "termsOfService": { "$ref": "#/definitions/infoObjectTermsOfService" }, "version": { "$ref": "#/definitions/infoObjectVersion" }, "contact": { "$ref": "#/definitions/contactObject" }, "license": { "$ref": "#/definitions/licenseObject" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "externalDocumentationObjectDescription": { "title": "externalDocumentationObjectDescription", "type": "string" }, "externalDocumentationObjectUrl": { "title": "externalDocumentationObjectUrl", "type": "string", "format": "uri" }, "externalDocumentationObject": { "title": "externalDocumentationObject", "type": "object", "additionalProperties": false, "description": "information about external documentation", "required": ["url"], "properties": { "description": { "$ref": "#/definitions/externalDocumentationObjectDescription" }, "url": { "$ref": "#/definitions/externalDocumentationObjectUrl" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "serverObjectUrl": { "title": "serverObjectUrl", "type": "string", "format": "uri" }, "serverObjectName": { "title": "serverObjectName", "type": "string" }, "serverObjectDescription": { "title": "serverObjectDescription", "type": "string" }, "serverObjectSummary": { "title": "serverObjectSummary", "type": "string" }, "serverObjectVariableDefault": { "title": "serverObjectVariableDefault", "type": "string" }, "serverObjectVariableDescription": { "title": "serverObjectVariableDescription", "type": "string" }, "serverObjectVariableEnumItem": { "title": "serverObjectVariableEnumItem", "type": "string" }, "serverObjectVariableEnum": { "title": "serverObjectVariableEnum", "type": "array", "items": { "$ref": "#/definitions/serverObjectVariableEnumItem" } }, "serverObjectVariable": { "title": "serverObjectVariable", "type": "object", "required": ["default"], "properties": { "default": { "$ref": "#/definitions/serverObjectVariableDefault" }, "description": { "$ref": "#/definitions/serverObjectVariableDescription" }, "enum": { "$ref": "#/definitions/serverObjectVariableEnum" } } }, "serverObjectVariables": { "title": "serverObjectVariables", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/serverObjectVariable" } } }, "serverObject": { "title": "serverObject", "type": "object", "required": ["url"], "additionalProperties": false, "properties": { "url": { "$ref": "#/definitions/serverObjectUrl" }, "name": { "$ref": "#/definitions/serverObjectName" }, "description": { "$ref": "#/definitions/serverObjectDescription" }, "summary": { "$ref": "#/definitions/serverObjectSummary" }, "variables": { "$ref": "#/definitions/serverObjectVariables" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "AlwaysFalse": false, "servers": { "title": "servers", "type": "array", "additionalItems": false, "items": { "$ref": "#/definitions/serverObject" } }, "methodObjectName": { "title": "methodObjectName", "description": "The cannonical name for the method. The name MUST be unique within the methods array.", "type": "string", "minLength": 1 }, "methodObjectDescription": { "title": "methodObjectDescription", "description": "A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation.", "type": "string" }, "methodObjectSummary": { "title": "methodObjectSummary", "description": "A short summary of what the method does.", "type": "string" }, "tagObjectName": { "title": "tagObjectName", "type": "string", "minLength": 1 }, "tagObjectDescription": { "title": "tagObjectDescription", "type": "string" }, "tagObject": { "title": "tagObject", "type": "object", "additionalProperties": false, "required": ["name"], "properties": { "name": { "$ref": "#/definitions/tagObjectName" }, "description": { "$ref": "#/definitions/tagObjectDescription" }, "externalDocs": { "$ref": "#/definitions/externalDocumentationObject" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "$ref": { "title": "$ref", "type": "string", "format": "uri-reference" }, "referenceObject": { "title": "referenceObject", "type": "object", "additionalProperties": false, "required": ["$ref"], "properties": { "$ref": { "$ref": "#/definitions/$ref" } } }, "tagOrReference": { "title": "tagOrReference", "oneOf": [{ "$ref": "#/definitions/tagObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectTags": { "title": "methodObjectTags", "type": "array", "items": { "$ref": "#/definitions/tagOrReference" } }, "methodObjectParamStructure": { "title": "methodObjectParamStructure", "type": "string", "description": "Format the server expects the params. Defaults to 'either'.", "enum": ["by-position", "by-name", "either"], "default": "either" }, "contentDescriptorObjectName": { "title": "contentDescriptorObjectName", "type": "string", "minLength": 1 }, "contentDescriptorObjectDescription": { "title": "contentDescriptorObjectDescription", "type": "string" }, "contentDescriptorObjectSummary": { "title": "contentDescriptorObjectSummary", "type": "string" }, "$id": { "title": "$id", "type": "string", "format": "uri-reference" }, "$schema": { "title": "$schema", "type": "string", "format": "uri" }, "$comment": { "title": "$comment", "type": "string" }, "title": { "title": "title", "type": "string" }, "description": { "title": "description", "type": "string" }, "AlwaysTrue": true, "readOnly": { "title": "readOnly", "type": "boolean", "default": false }, "examples": { "title": "examples", "type": "array", "items": true }, "multipleOf": { "title": "multipleOf", "type": "number", "exclusiveMinimum": 0 }, "maximum": { "title": "maximum", "type": "number" }, "exclusiveMaximum": { "title": "exclusiveMaximum", "type": "number" }, "minimum": { "title": "minimum", "type": "number" }, "exclusiveMinimum": { "title": "exclusiveMinimum", "type": "number" }, "nonNegativeInteger": { "title": "nonNegativeInteger", "type": "integer", "minimum": 0 }, "nonNegativeIntegerDefaultZero": { "title": "nonNegativeIntegerDefaultZero", "type": "integer", "minimum": 0, "default": 0 }, "pattern": { "title": "pattern", "type": "string", "format": "regex" }, "schemaArray": { "title": "schemaArray", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/undefined" } }, "items": { "title": "items", "anyOf": [{ "$ref": "#/definitions/undefined" }, { "$ref": "#/definitions/schemaArray" }], "default": true }, "uniqueItems": { "title": "uniqueItems", "type": "boolean", "default": false }, "string_doaGddGA": { "type": "string", "title": "string_doaGddGA" }, "stringArray": { "title": "stringArray", "type": "array", "items": { "$ref": "#/definitions/string_doaGddGA" }, "uniqueItems": true, "default": [] }, "definitions": { "title": "definitions", "type": "object", "additionalProperties": { "$ref": "#/definitions/undefined" }, "default": {} }, "properties": { "title": "properties", "type": "object", "additionalProperties": { "$ref": "#/definitions/undefined" }, "default": {} }, "patternProperties": { "title": "patternProperties", "type": "object", "additionalProperties": { "$ref": "#/definitions/undefined" }, "propertyNames": { "title": "propertyNames", "format": "regex" }, "default": {} }, "dependenciesSet": { "title": "dependenciesSet", "anyOf": [{ "$ref": "#/definitions/undefined" }, { "$ref": "#/definitions/stringArray" }] }, "dependencies": { "title": "dependencies", "type": "object", "additionalProperties": { "$ref": "#/definitions/dependenciesSet" } }, "enum": { "title": "enum", "type": "array", "items": true, "minItems": 1, "uniqueItems": true }, "simpleTypes": { "title": "simpleTypes", "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] }, "arrayOfSimpleTypes": { "title": "arrayOfSimpleTypes", "type": "array", "items": { "$ref": "#/definitions/simpleTypes" }, "minItems": 1, "uniqueItems": true }, "type": { "title": "type", "anyOf": [{ "$ref": "#/definitions/simpleTypes" }, { "$ref": "#/definitions/arrayOfSimpleTypes" }] }, "format": { "title": "format", "type": "string" }, "contentMediaType": { "title": "contentMediaType", "type": "string" }, "contentEncoding": { "title": "contentEncoding", "type": "string" }, "JSONSchemaObject": { "title": "JSONSchemaObject", "type": "object", "properties": { "$id": { "$ref": "#/definitions/$id" }, "$schema": { "$ref": "#/definitions/$schema" }, "$ref": { "$ref": "#/definitions/$ref" }, "$comment": { "$ref": "#/definitions/$comment" }, "title": { "$ref": "#/definitions/title" }, "description": { "$ref": "#/definitions/description" }, "default": true, "readOnly": { "$ref": "#/definitions/readOnly" }, "examples": { "$ref": "#/definitions/examples" }, "multipleOf": { "$ref": "#/definitions/multipleOf" }, "maximum": { "$ref": "#/definitions/maximum" }, "exclusiveMaximum": { "$ref": "#/definitions/exclusiveMaximum" }, "minimum": { "$ref": "#/definitions/minimum" }, "exclusiveMinimum": { "$ref": "#/definitions/exclusiveMinimum" }, "maxLength": { "$ref": "#/definitions/nonNegativeInteger" }, "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "pattern": { "$ref": "#/definitions/pattern" }, "additionalItems": { "$ref": "#/definitions/undefined" }, "items": { "$ref": "#/definitions/items" }, "maxItems": { "$ref": "#/definitions/nonNegativeInteger" }, "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "uniqueItems": { "$ref": "#/definitions/uniqueItems" }, "contains": { "$ref": "#/definitions/undefined" }, "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" }, "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "required": { "$ref": "#/definitions/stringArray" }, "additionalProperties": { "$ref": "#/definitions/undefined" }, "definitions": { "$ref": "#/definitions/definitions" }, "properties": { "$ref": "#/definitions/properties" }, "patternProperties": { "$ref": "#/definitions/patternProperties" }, "dependencies": { "$ref": "#/definitions/dependencies" }, "propertyNames": { "$ref": "#/definitions/undefined" }, "const": true, "enum": { "$ref": "#/definitions/enum" }, "type": { "$ref": "#/definitions/type" }, "format": { "$ref": "#/definitions/format" }, "contentMediaType": { "$ref": "#/definitions/contentMediaType" }, "contentEncoding": { "$ref": "#/definitions/contentEncoding" }, "if": { "$ref": "#/definitions/undefined" }, "then": { "$ref": "#/definitions/undefined" }, "else": { "$ref": "#/definitions/undefined" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#/definitions/undefined" } } }, "JSONSchemaBoolean": { "title": "JSONSchemaBoolean", "description": "Always valid if true. Never valid if false. Is constant.", "type": "boolean" }, "JSONSchema": { "$schema": "https://meta.json-schema.tools/", "$id": "https://meta.json-schema.tools/", "title": "JSONSchema", "default": {}, "oneOf": [{ "$ref": "#/definitions/JSONSchemaObject" }, { "$ref": "#/definitions/JSONSchemaBoolean" }], "definitions": { "JSONSchemaBoolean": { "$ref": "#/definitions/JSONSchemaBoolean" }, "JSONSchemaObject": { "$ref": "#/definitions/JSONSchemaObject" }, "schemaArray": { "$ref": "#/definitions/schemaArray" }, "nonNegativeInteger": { "$ref": "#/definitions/nonNegativeInteger" }, "nonNegativeIntegerDefault0": { "$ref": "#/definitions/nonNegativeIntegerDefaultZero" }, "simpleTypes": { "$ref": "#/definitions/simpleTypes" }, "stringArray": { "$ref": "#/definitions/stringArray" } }, "isCycle": true }, "contentDescriptorObjectRequired": { "title": "contentDescriptorObjectRequired", "type": "boolean", "default": false }, "contentDescriptorObjectDeprecated": { "title": "contentDescriptorObjectDeprecated", "type": "boolean", "default": false }, "contentDescriptorObject": { "title": "contentDescriptorObject", "type": "object", "additionalProperties": false, "required": ["name", "schema"], "properties": { "name": { "$ref": "#/definitions/contentDescriptorObjectName" }, "description": { "$ref": "#/definitions/contentDescriptorObjectDescription" }, "summary": { "$ref": "#/definitions/contentDescriptorObjectSummary" }, "schema": { "$ref": "#/definitions/undefined" }, "required": { "$ref": "#/definitions/contentDescriptorObjectRequired" }, "deprecated": { "$ref": "#/definitions/contentDescriptorObjectDeprecated" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "contentDescriptorOrReference": { "title": "contentDescriptorOrReference", "oneOf": [{ "$ref": "#/definitions/contentDescriptorObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectParams": { "title": "methodObjectParams", "type": "array", "items": { "$ref": "#/definitions/contentDescriptorOrReference" } }, "methodObjectResult": { "title": "methodObjectResult", "oneOf": [{ "$ref": "#/definitions/contentDescriptorObject" }, { "$ref": "#/definitions/referenceObject" }] }, "errorObjectCode": { "title": "errorObjectCode", "description": "A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api.", "type": "integer" }, "errorObjectMessage": { "title": "errorObjectMessage", "description": "A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.", "type": "string" }, "errorObjectData": { "title": "errorObjectData", "description": "A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)." }, "errorObject": { "title": "errorObject", "type": "object", "description": "Defines an application level error.", "additionalProperties": false, "required": ["code", "message"], "properties": { "code": { "$ref": "#/definitions/errorObjectCode" }, "message": { "$ref": "#/definitions/errorObjectMessage" }, "data": { "$ref": "#/definitions/errorObjectData" } } }, "errorOrReference": { "title": "errorOrReference", "oneOf": [{ "$ref": "#/definitions/errorObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectErrors": { "title": "methodObjectErrors", "description": "Defines an application level error.", "type": "array", "items": { "$ref": "#/definitions/errorOrReference" } }, "linkObjectName": { "title": "linkObjectName", "type": "string", "minLength": 1 }, "linkObjectSummary": { "title": "linkObjectSummary", "type": "string" }, "linkObjectMethod": { "title": "linkObjectMethod", "type": "string" }, "linkObjectDescription": { "title": "linkObjectDescription", "type": "string" }, "linkObjectParams": { "title": "linkObjectParams" }, "linkObjectServer": { "title": "linkObjectServer", "type": "object", "required": ["url"], "additionalProperties": false, "properties": { "url": { "$ref": "#/definitions/serverObjectUrl" }, "name": { "$ref": "#/definitions/serverObjectName" }, "description": { "$ref": "#/definitions/serverObjectDescription" }, "summary": { "$ref": "#/definitions/serverObjectSummary" }, "variables": { "$ref": "#/definitions/serverObjectVariables" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "linkObject": { "title": "linkObject", "type": "object", "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/linkObjectName" }, "summary": { "$ref": "#/definitions/linkObjectSummary" }, "method": { "$ref": "#/definitions/linkObjectMethod" }, "description": { "$ref": "#/definitions/linkObjectDescription" }, "params": { "$ref": "#/definitions/linkObjectParams" }, "server": { "$ref": "#/definitions/linkObjectServer" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "linkOrReference": { "title": "linkOrReference", "oneOf": [{ "$ref": "#/definitions/linkObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectLinks": { "title": "methodObjectLinks", "type": "array", "items": { "$ref": "#/definitions/linkOrReference" } }, "examplePairingObjectName": { "title": "examplePairingObjectName", "type": "string", "minLength": 1 }, "examplePairingObjectDescription": { "title": "examplePairingObjectDescription", "type": "string" }, "exampleObjectSummary": { "title": "exampleObjectSummary", "type": "string" }, "exampleObjectValue": { "title": "exampleObjectValue" }, "exampleObjectDescription": { "title": "exampleObjectDescription", "type": "string" }, "exampleObjectName": { "title": "exampleObjectName", "type": "string", "minLength": 1 }, "exampleObject": { "title": "exampleObject", "type": "object", "required": ["name", "value"], "properties": { "summary": { "$ref": "#/definitions/exampleObjectSummary" }, "value": { "$ref": "#/definitions/exampleObjectValue" }, "description": { "$ref": "#/definitions/exampleObjectDescription" }, "name": { "$ref": "#/definitions/exampleObjectName" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "exampleOrReference": { "title": "exampleOrReference", "oneOf": [{ "$ref": "#/definitions/exampleObject" }, { "$ref": "#/definitions/referenceObject" }] }, "examplePairingObjectParams": { "title": "examplePairingObjectParams", "type": "array", "items": { "$ref": "#/definitions/exampleOrReference" } }, "examplePairingObjectResult": { "title": "examplePairingObjectResult", "oneOf": [{ "$ref": "#/definitions/exampleObject" }, { "$ref": "#/definitions/referenceObject" }] }, "examplePairingObject": { "title": "examplePairingObject", "type": "object", "required": ["name", "params", "result"], "properties": { "name": { "$ref": "#/definitions/examplePairingObjectName" }, "description": { "$ref": "#/definitions/examplePairingObjectDescription" }, "params": { "$ref": "#/definitions/examplePairingObjectParams" }, "result": { "$ref": "#/definitions/examplePairingObjectResult" } } }, "examplePairingOrReference": { "title": "examplePairingOrReference", "oneOf": [{ "$ref": "#/definitions/examplePairingObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methodObjectExamples": { "title": "methodObjectExamples", "type": "array", "items": { "$ref": "#/definitions/examplePairingOrReference" } }, "methodObjectDeprecated": { "title": "methodObjectDeprecated", "type": "boolean", "default": false }, "methodObject": { "title": "methodObject", "type": "object", "required": ["name", "params"], "additionalProperties": false, "properties": { "name": { "$ref": "#/definitions/methodObjectName" }, "description": { "$ref": "#/definitions/methodObjectDescription" }, "summary": { "$ref": "#/definitions/methodObjectSummary" }, "servers": { "$ref": "#/definitions/servers" }, "tags": { "$ref": "#/definitions/methodObjectTags" }, "paramStructure": { "$ref": "#/definitions/methodObjectParamStructure" }, "params": { "$ref": "#/definitions/methodObjectParams" }, "result": { "$ref": "#/definitions/methodObjectResult" }, "errors": { "$ref": "#/definitions/methodObjectErrors" }, "links": { "$ref": "#/definitions/methodObjectLinks" }, "examples": { "$ref": "#/definitions/methodObjectExamples" }, "deprecated": { "$ref": "#/definitions/methodObjectDeprecated" }, "externalDocs": { "$ref": "#/definitions/externalDocumentationObject" } }, "patternProperties": { "^x-": { "$ref": "#/definitions/specificationExtension" } } }, "methodOrReference": { "title": "methodOrReference", "oneOf": [{ "$ref": "#/definitions/methodObject" }, { "$ref": "#/definitions/referenceObject" }] }, "methods": { "title": "methods", "type": "array", "additionalItems": false, "items": { "$ref": "#/definitions/methodOrReference" } }, "schemaComponents": { "title": "schemaComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/undefined" } } }, "linkComponents": { "title": "linkComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/linkObject" } } }, "errorComponents": { "title": "errorComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/errorObject" } } }, "exampleComponents": { "title": "exampleComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/exampleObject" } } }, "examplePairingComponents": { "title": "examplePairingComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/examplePairingObject" } } }, "contentDescriptorComponents": { "title": "contentDescriptorComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/contentDescriptorObject" } } }, "tagComponents": { "title": "tagComponents", "type": "object", "patternProperties": { "[0-z]+": { "$ref": "#/definitions/tagObject" } } }, "components": { "title": "components", "type": "object", "properties": { "schemas": { "$ref": "#/definitions/schemaComponents" }, "links": { "$ref": "#/definitions/linkComponents" }, "errors": { "$ref": "#/definitions/errorComponents" }, "examples": { "$ref": "#/definitions/exampleComponents" }, "examplePairings": { "$ref": "#/definitions/examplePairingComponents" }, "contentDescriptors": { "$ref": "#/definitions/contentDescriptorComponents" }, "tags": { "$ref": "#/definitions/tagComponents" } } }, "string_PBC4jHUy": { "description": "JSON Schema URI (used by some editors)", "type": "string", "default": "https://meta.open-rpc.org/", "title": "string_PBC4jHUy" } } }; | ||
exports.default = exports.openrpcDocument; |
{ | ||
"name": "@open-rpc/meta-schema", | ||
"version": "1.14.2", | ||
"version": "1.14.3", | ||
"description": "OpenRPC Specification JSON schemas", | ||
@@ -30,19 +30,19 @@ "author": { | ||
"@json-schema-tools/dereferencer": "^1.4.0", | ||
"@json-schema-tools/semantic-release-transpiler": "^1.5.0", | ||
"@qiwi/semantic-release-gh-pages-plugin": "^5.0.2", | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/commit-analyzer": "^8.0.1", | ||
"@semantic-release/exec": "^5.0.0", | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/github": "^7.1.1", | ||
"@semantic-release/npm": "^7.0.6", | ||
"@semantic-release/release-notes-generator": "^9.0.1", | ||
"@types/jest": "^26.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.25.0", | ||
"eslint": "^7.13.0", | ||
"@json-schema-tools/semantic-release-transpiler": "^1.6.14", | ||
"@qiwi/semantic-release-gh-pages-plugin": "^5.2.4", | ||
"@semantic-release/changelog": "^6.0.2", | ||
"@semantic-release/commit-analyzer": "^9.0.2", | ||
"@semantic-release/exec": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^8.0.7", | ||
"@semantic-release/npm": "^9.0.2", | ||
"@semantic-release/release-notes-generator": "^10.0.3", | ||
"@types/jest": "^26.0.22", | ||
"@typescript-eslint/eslint-plugin": "^5.50.0", | ||
"@typescript-eslint/parser": "^5.50.0", | ||
"eslint": "^8.33.0", | ||
"jest": "^26.6.3", | ||
"semantic-release": "^17.1.2", | ||
"ts-jest": "^26.4.4", | ||
"typescript": "^4.0.3" | ||
"semantic-release": "^20.1.0", | ||
"ts-jest": "^26.5.5", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -49,0 +49,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
470
50725
5