@apistudio/apim-cli
Version:
CLI for API Management Products
1,601 lines • 76.6 kB
JavaScript
export default {
"rules": {
"invalid-kind-value-combined": {
"description": "Kind must be one of 'API' | 'Scope' | 'Project' | 'StagedPolicySequence' | 'InvokeAWSLambda' | 'ValidateAPISpecification' | 'CORS' | 'Quota' | 'Plan' | 'Product' | 'URISchemes' | 'properties' | 'Telemetry' | 'Properties' | 'LoadBalancer' | 'SetAuthorization' | 'Invoke' | 'GlobalPolicy' | 'InboundBulkHead' | 'SetMediaType' | 'InboundMessaging' | 'IAM' | 'AuthorizeUser' | 'SetContextVariable' | 'WebMethodsISService' | 'Log' | 'MonitorTraffic' | 'CacheServiceResult' | 'OutboundAlias' | 'OutboundAnonymous' | 'HTTPInvoke' | 'InvokeMessagingExtension' | 'DataMasking' | 'TransformRequest' | 'TransformResponse' | 'Route' | 'MessageConfig' | 'HTTPEndpoint' | 'MockEndpoint' | 'MockResponse' | 'ErrorProcessing' | 'Set' | 'RateLimitDef' | 'RateLimit' | 'Redact' | 'Remove' | 'Transform' | 'DataPowerAssembly' | 'Switch' | 'If' | 'OperationSwitch' | 'Try' | 'IBMCloudLogin' | 'WatsonXAIInvoke' | 'OpenAIInvoke' | 'FreeFlowPolicySequence' | 'Block' | 'TokenMediation' | 'EnforceCircuitBreaker' | 'JavaScript' | 'LuaScript' | 'Cache' | 'Antivirus' | 'SQLInjectionFilter' | 'CountLimit' | 'CountLimitDef' | 'Return' | 'Retry' | 'Throw' | 'HandlebarsTemplate' | 'ExtractIdentity' | 'Authorize' | 'Authenticate' | 'Parse'",
"severity": "error",
"given": "$",
"then": {
"field": "kind",
"function": "schema",
"functionOptions": {
"schema": {
"type": "string",
"enum": [
"API",
"Scope",
"Project",
"StagedPolicySequence",
"InvokeAWSLambda",
"ValidateAPISpecification",
"CORS",
"Quota",
"Plan",
"Product",
"URISchemes",
"properties",
"Telemetry",
"Properties",
"LoadBalancer",
"SetAuthorization",
"Invoke",
"GlobalPolicy",
"InboundBulkHead",
"SetMediaType",
"InboundMessaging",
"IAM",
"AuthorizeUser",
"SetContextVariable",
"WebMethodsISService",
"Log",
"MonitorTraffic",
"CacheServiceResult",
"OutboundAlias",
"OutboundAnonymous",
"HTTPInvoke",
"InvokeMessagingExtension",
"DataMasking",
"TransformRequest",
"TransformResponse",
"Route",
"MessageConfig",
"HTTPEndpoint",
"MockEndpoint",
"MockResponse",
"ErrorProcessing",
"Set",
"RateLimitDef",
"RateLimit",
"Redact",
"Remove",
"Transform",
"DataPowerAssembly",
"Switch",
"If",
"OperationSwitch",
"Try",
"IBMCloudLogin",
"WatsonXAIInvoke",
"OpenAIInvoke",
"FreeFlowPolicySequence",
"Block",
"TokenMediation",
"EnforceCircuitBreaker",
"JavaScript",
"LuaScript",
"Cache",
"Antivirus",
"SQLInjectionFilter",
"CountLimit",
"CountLimitDef",
"Return",
"Retry",
"Throw",
"HandlebarsTemplate",
"ExtractIdentity",
"Authorize",
"Authenticate",
"Parse"
]
}
}
}
},
"kind-not-exist": {
"description": "Kind does not exist.",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "kind",
"function": "truthy"
}
},
"invalid-kind-value": {
"description": "Kind must be 'ExtractIdentity'",
"severity": "error",
"given": "$",
"then": {
"field": "kind",
"function": "schema",
"functionOptions": {
"schema": {
"type": "string",
"enum": [
"ExtractIdentity"
]
}
}
}
},
"invalid-kind-spl-character": {
"description": "kind should not be having empty or special characters",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "kind",
"function": "pattern",
"functionOptions": {
"match": "^(?![\\s\\W_]+$).+$"
}
}
},
"invalid-api-version": {
"description": "apiVersion must be one of the valid values 'api.ibm.com/v1'",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "apiVersion",
"function": "schema",
"functionOptions": {
"schema": {
"type": "string",
"enum": [
"api.ibm.com/v1"
]
}
}
}
},
"api-version-not-exist": {
"description": "apiVersion does not exist.",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "apiVersion",
"function": "truthy"
}
},
"metadata-not-exist": {
"description": "Metadata does not exist.",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "metadata",
"function": "truthy"
}
},
"metadata-whitelist-check": {
"description": "Metadata should not be having empty or special characters",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "metadata",
"function": "pattern",
"functionOptions": {
"match": "^(?![\\s\\W_]+$).+$"
}
}
},
"metadata-name-not-exist": {
"description": "Metadata name does not exist",
"severity": "error",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "name",
"function": "truthy"
}
},
"metadata-name-whitelist-check": {
"description": "Metadata name should not be having empty or special characters",
"severity": "error",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "name",
"function": "pattern",
"functionOptions": {
"match": "^(?![\\s\\W_]+$).+$"
}
}
},
"metadata-version-not-exist": {
"description": "Metadata version does not exist",
"severity": "error",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "version",
"function": "truthy"
}
},
"metadata-version-whitelist-check": {
"description": "Metadata version should not be having empty or special characters",
"severity": "error",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "version",
"function": "pattern",
"functionOptions": {
"match": "^(?![\\s\\W_]+$).+$"
}
}
},
"metadata-namespace-not-exist": {
"description": "Metadata namespace does not exist",
"severity": "warn",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "namespace",
"function": "truthy"
}
},
"metadata-namespace-whitelist-check": {
"description": "Metadata namespace should not be having empty or special characters",
"severity": "warn",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "namespace",
"function": "pattern",
"functionOptions": {
"match": "^(?![\\s\\W_]+$).+$"
}
}
},
"spec-details-not-exist": {
"description": "Spec details does not exist",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "spec",
"function": "truthy"
}
},
"spec-details-whitelist-check": {
"description": "Spec should not be having empty or special characters",
"severity": "error",
"given": "$",
"resolved": false,
"then": {
"field": "spec",
"function": "pattern",
"functionOptions": {
"match": "^(?![\\s\\W_]+$).+$"
}
}
},
"tags-not-exist": {
"description": "Tag does not exist",
"severity": "warn",
"given": "$.metadata",
"resolved": false,
"then": {
"field": "tags",
"function": "truthy"
}
},
"invalid-tag-type": {
"description": "Invalid Tag Type",
"severity": "error",
"given": "$.metadata.tags",
"resolved": false,
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "array"
}
}
}
},
"$-metadata-description-type": {
"description": "The description field must be of type string",
"severity": "error",
"given": "$.metadata.description",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-metadata-name-required": {
"description": "The name field is required in the $.metadata",
"severity": "error",
"given": "$.metadata",
"then": {
"field": "name",
"function": "defined"
}
},
"$-metadata-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.metadata.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-metadata-namespace-type": {
"description": "The namespace field must be of type string",
"severity": "error",
"given": "$.metadata.namespace",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-metadata-tags-type": {
"description": "The tags field must be of type array",
"severity": "error",
"given": "$.metadata.tags",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "array"
}
}
}
},
"$-metadata-tags-items-type": {
"description": "Items in the tags array must be of type string",
"severity": "error",
"given": "$.metadata.tags[*]",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-metadata-type-type": {
"description": "The type field must be of type string",
"severity": "error",
"given": "$.metadata.type",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-metadata-type-enum": {
"description": "The type field must be one of: REST, SWAGGER, SOAP, GRAPHQL, ODATA",
"severity": "error",
"given": "$.metadata.type",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"enum": [
"REST",
"SWAGGER",
"SOAP",
"GRAPHQL",
"ODATA"
]
}
}
}
},
"$-metadata-version-required": {
"description": "The version field is required in the $.metadata",
"severity": "error",
"given": "$.metadata",
"then": {
"field": "version",
"function": "defined"
}
},
"$-metadata-version-type": {
"description": "The version field must be of type string",
"severity": "error",
"given": "$.metadata.version",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-metadata-labels-type": {
"description": "The labels field must be of type object",
"severity": "error",
"given": "$.metadata.labels",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-metadata-labels-gatewayTypes-type": {
"description": "The gatewayTypes field must be of type array",
"severity": "error",
"given": "$.metadata.labels.gatewayTypes",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "array"
}
}
}
},
"$-metadata-labels-gatewayTypes-items-type": {
"description": "Items in the gatewayTypes array must be of type string",
"severity": "error",
"given": "$.metadata.labels.gatewayTypes[*]",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-namespace-type": {
"description": "The namespace field must be of type string",
"severity": "error",
"given": "$.spec.namespace",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-oneOf": {
"description": "The credentialType field must match the oneOf schema definition",
"severity": "error",
"given": "$.spec.credentialType",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"oneOf": [
{
"type": "string",
"enum": [
"hostname",
"ipAddress"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"hostname": {
"type": "object",
"additionalProperties": false
},
"ipAddress": {
"type": "object",
"additionalProperties": false
},
"httpBasic": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
},
"oauth2": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
},
"jwt": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
},
"apiKey": {
"type": "object",
"additionalProperties": false,
"properties": {
"clientId": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
},
"clientSecret": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
}
}
},
"certificate": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"tlsCert"
],
"properties": {
"tlsCert": {
"type": "string"
}
}
}
]
},
"httpHeaders": {
"type": "array",
"items": {
"type": "string"
}
},
"payloadElement": {
"oneOf": [
{
"type": "object",
"required": [
"regex"
],
"properties": {
"regex": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"jsonPath"
],
"properties": {
"jsonPath": {
"type": "string"
}
}
}
]
}
}
}
]
}
}
}
},
"$-spec-credentialType-hostname-type": {
"description": "The hostname field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.hostname",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-ipAddress-type": {
"description": "The ipAddress field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.ipAddress",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-httpBasic-oneOf": {
"description": "The httpBasic field must match the oneOf schema definition",
"severity": "error",
"given": "$.spec.credentialType.httpBasic",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
}
}
}
},
"$-spec-credentialType-httpBasic-httpHeader-type": {
"description": "The httpHeader field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.httpHeader",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-httpBasic-httpHeader-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.httpHeader.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-httpBasic-contextVar-type": {
"description": "The contextVar field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.contextVar",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-httpBasic-contextVar-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.contextVar.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-httpBasic-query-type": {
"description": "The query field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.query",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-httpBasic-query-username-type": {
"description": "The username field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.query.username",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-httpBasic-query-password-type": {
"description": "The password field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.query.password",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-httpBasic-payload-type": {
"description": "The payload field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.payload",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-httpBasic-payload-username-type": {
"description": "The username field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.payload.username",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-httpBasic-payload-password-type": {
"description": "The password field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.payload.password",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-httpBasic-cookie-type": {
"description": "The cookie field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.cookie",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-httpBasic-cookie-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.httpBasic.cookie.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-oauth2-oneOf": {
"description": "The oauth2 field must match the oneOf schema definition",
"severity": "error",
"given": "$.spec.credentialType.oauth2",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"oneOf": [
{
"type": "object",
"required": [
"httpHeader"
],
"properties": {
"httpHeader": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"contextVar"
],
"properties": {
"contextVar": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"payload"
],
"properties": {
"payload": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"required": [
"cookie"
],
"properties": {
"cookie": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
]
}
}
}
},
"$-spec-credentialType-oauth2-httpHeader-type": {
"description": "The httpHeader field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.oauth2.httpHeader",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-oauth2-httpHeader-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.oauth2.httpHeader.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-oauth2-contextVar-type": {
"description": "The contextVar field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.oauth2.contextVar",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-oauth2-contextVar-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.oauth2.contextVar.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-oauth2-query-type": {
"description": "The query field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.oauth2.query",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-oauth2-query-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.oauth2.query.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-oauth2-payload-type": {
"description": "The payload field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.oauth2.payload",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-oauth2-payload-name-type": {
"description": "The name field must be of type string",
"severity": "error",
"given": "$.spec.credentialType.oauth2.payload.name",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "string"
}
}
}
},
"$-spec-credentialType-oauth2-cookie-type": {
"description": "The cookie field must be of type object",
"severity": "error",
"given": "$.spec.credentialType.oauth2.cookie",
"then": {
"function": "schema",
"functionOptions": {
"schema": {
"type": "object"
}
}
}
},
"$-spec-credentialType-oauth2-cookie-name-type": {
"description": "The name field must be of type string",
"severity":