-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
717 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"related":["createEncryptedJWT","createSignedJWT","deserializeAvro","deserializeProtobuf","generateGraphQLModels","getGraphQLClient","serializeAvro","serializeProtobuf","verifyEncryptedJWT","verifySignedJWT","xmlClear","xmlDeleteAt","xmlHasChild","xmlUpdate"], | ||
"name":"ColdFusion 2023 New Functions and Tags","type":"listing","description":"List of tags and functions added in ColdFusion 2023" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "createEncryptedJWT", | ||
"type": "function", | ||
"syntax": "createEncryptedJWT(payload, encryptOptions, config)", | ||
"returns": "string", | ||
"related": [ "verifyEncryptedJWT", "createSignedJWT" ], | ||
"description": "Create an encrypted JWT (JSON Web Encryption - JWE)", | ||
"params": [ | ||
{ | ||
"name": "payload", | ||
"description": "The payload as a string or struct.", | ||
"required": true, | ||
"default": "", | ||
"type": "any", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "encryptOptions", | ||
"description": "Encrypt using the key information from given struct", | ||
"required": true, | ||
"default": "", | ||
"type": "struct", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "config", | ||
"description": "A struct with the following values:\n- algorithm : algorithm used for signing.\n- encryption : algorithm used for encrypting the payload.\n- generateIssuedAt : boolean to indicate whether to generate \"iat\" field\n- generateJti : boolean to indicate whether to generate \"jti\" field", | ||
"required": true, | ||
"default": "", | ||
"type": "struct", | ||
"values": [] | ||
} | ||
], | ||
"engines": { | ||
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/createencryptedjwt.html"} | ||
}, | ||
"links": [ | ||
{ | ||
"title": "JSON Web Tokens in ColdFusion", | ||
"description": "Overview of JSON Web Tokens (JWT), including how to use them in ColdFusion", | ||
"url": "https://helpx.adobe.com/coldfusion/using/coldfusion-json-web-tokens.html" | ||
} | ||
], | ||
"examples": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "createSignedJWT", | ||
"type": "function", | ||
"syntax": "createSignedJWT(payload, signOptions, config)", | ||
"returns": "string", | ||
"related": [ "verifySignedJWT", "createEncryptedJWT" ], | ||
"description": "Create a signed JWT (JSON Web Signature - JWS)", | ||
"params": [ | ||
{ | ||
"name": "payload", | ||
"description": "The payload as a string or struct.", | ||
"required": true, | ||
"default": "", | ||
"type": "any", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "signOptions", | ||
"description": "Create the signature using the key information from the given struct", | ||
"required": true, | ||
"default": "", | ||
"type": "struct", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "config", | ||
"description": "A struct with the following values:\n- algorithm : algorithm used for signing.\n- generateIssuedAt : boolean to indicate whether to generate \"iat\" field\n- generateJti : boolean to indicate whether to generate \"jti\" field", | ||
"required": true, | ||
"default": "", | ||
"type": "struct", | ||
"values": [] | ||
} | ||
], | ||
"engines": { | ||
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/createsignedjwt.html"} | ||
}, | ||
"links": [ | ||
{ | ||
"title": "JSON Web Tokens in ColdFusion", | ||
"description": "Overview of JSON Web Tokens (JWT), including how to use them in ColdFusion", | ||
"url": "https://helpx.adobe.com/coldfusion/using/coldfusion-json-web-tokens.html" | ||
} | ||
], | ||
"examples": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"name": "deserializeAvro", | ||
"type": "function", | ||
"syntax": "deserializeAvro(data, readerSchema [, strictMapping, useCustomSerialization])", | ||
"returns": "any", | ||
"related": [ "serializeAvro" ], | ||
"description": "Converts an Avro data representation into CFML data.", | ||
"params": [ | ||
{ | ||
"name": "data", | ||
"description": "Avro serialized data", | ||
"required": true, | ||
"default": "", | ||
"type": "any", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "readerSchema", | ||
"description": "The Avro schema as a string or the absolute path to the schema", | ||
"required": true, | ||
"default": "", | ||
"type": "string", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "strictMapping", | ||
"description": "Specifies whether to convert the Avro strictly. If true, converts the Avro binary to matching ColdFusion data types.", | ||
"required": false, | ||
"default": true, | ||
"type": "boolean", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "useCustomSerialization", | ||
"description": "Whether to use the customSerializer", | ||
"required": false, | ||
"default": true, | ||
"type": "boolean", | ||
"values": [] | ||
} | ||
], | ||
"engines": { | ||
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/deserializeavro.html"} | ||
}, | ||
"links": [ | ||
{ | ||
"title": "Avro and Protocol Buffer in ColdFusion", | ||
"description": "Overview of Avro and Protobuf, including how to use them in ColdFusion", | ||
"url": "https://helpx.adobe.com/coldfusion/using/avro-protobuf-coldfusion.html" | ||
} | ||
], | ||
"examples": [ | ||
{ | ||
"title": "Deserialize an Avro serialized query (Script syntax)", | ||
"description": "", | ||
"code": "news = queryNew(\"id,title\",\n \"integer,varchar\",\n [ {\"id\":1,\"title\":\"Dewey defeats Truman\"}, {\"id\":2,\"title\":\"Man walks on Moon\"} ]);\nnewsSchema = '{ \n \"namespace\": \"my.example\",\n \"type\": \"record\",\n \"name\": \"News\",\n \"fields\": [ {\"name\":\"id\",\"type\":\"int\"}, {\"name\":\"title\",\"type\":\"string\"} ]\n}';\navro = serializeAvro(news, newsSchema);\nwriteDump(deserializeAvro(avro, newsSchema));", | ||
"runnable": false, | ||
"result": "" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"name": "deserializeProtobuf", | ||
"type": "function", | ||
"syntax": "serializeProtobuf(data, schema [, messageType, queryFormat, useCustomSerialization, protoPath])", | ||
"returns": "any", | ||
"related": [ "serializeProtobuf" ], | ||
"description": "Converts a Protobuf data representation into CFML data.", | ||
"params": [ | ||
{ | ||
"name": "data", | ||
"description": "Protobuf serialized data", | ||
"required": true, | ||
"default": "", | ||
"type": "any", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "schema", | ||
"description": "The Protobuf schema as a string or the absolute path to the schema", | ||
"required": true, | ||
"default": "", | ||
"type": "string", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "messageType", | ||
"description": "A message type from given schema as string. This is optional if schema contains one and only one message type.", | ||
"required": false, | ||
"default": "", | ||
"type": "string", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "strictMapping", | ||
"description": "Specifies whether to convert the Protobuf strictly. If true, converts the Protobuf binary to matching ColdFusion data types.", | ||
"required": false, | ||
"default": true, | ||
"type": "boolean", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "useCustomSerialization", | ||
"description": "Whether to use the customSerializer", | ||
"required": false, | ||
"default": true, | ||
"type": "boolean", | ||
"values": [] | ||
}, | ||
{ | ||
"name": "protoPath", | ||
"description": "Specifies a directory in which the compiler looks for imported files defined in the schema. By default, it will be the current schema's parent path.", | ||
"required": false, | ||
"default": "", | ||
"type": "string", | ||
"values": [] | ||
} | ||
], | ||
"engines": { | ||
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/deserializeprotobuf.html"} | ||
}, | ||
"links": [ | ||
{ | ||
"title": "Avro and Protocol Buffer in ColdFusion", | ||
"description": "Overview of Avro and Protobuf, including how to use them in ColdFusion", | ||
"url": "https://helpx.adobe.com/coldfusion/using/avro-protobuf-coldfusion.html" | ||
} | ||
], | ||
"examples": [ | ||
{ | ||
"title": "Deserialize a Protobuf serialized query (Script syntax)", | ||
"description": "", | ||
"code": "news = queryNew(\"id,title\",\n \"integer,varchar\",\n [ {\"id\":1,\"title\":\"Dewey defeats Truman\"}, {\"id\":2,\"title\":\"Man walks on Moon\"} ]);\nnewsSchema = 'syntax = \"proto3\";\nmessage News { int32 id = 1; string title = 2; }';\nprotobuf = serializeProtobuf(news, newsSchema);\nwriteDump(deserializeProtobuf(protobuf, newsSchema));", | ||
"runnable": false, | ||
"result": "" | ||
} | ||
] | ||
} |
Oops, something went wrong.