changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "batchId": {
+ "description": "Id of the fetched batch.",
+ "type": "string"
+ },
+ "documents": {
+ "description": "Generated documents, once available.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "description": "The `documents[]` alias this document was generated for.",
+ "type": "string"
+ },
+ "batchId": {
+ "description": "Id of the batch this document belongs to.",
+ "type": "string"
+ },
+ "documentSeed": {
+ "description": "Per-document PRNG seed actually used.",
+ "type": "number"
+ },
+ "result": {
+ "description": "The generated document; shape depends on the template body. Absent while pending/failed."
+ },
+ "seqNo": {
+ "description": "0-based index of this document within its alias group.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "status": {
+ "description": "Per-document generation status.",
+ "enum": [
+ "pending",
+ "completed",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "templateId": {
+ "description": "Template used to generate this document.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "batchId",
+ "alias",
+ "seqNo",
+ "templateId",
+ "status"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "error": {
+ "additionalProperties": false,
+ "description": "Present if the whole batch failed.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "seed": {
+ "description": "PRNG seed used for the whole batch.",
+ "type": "number"
+ },
+ "spec": {
+ "description": "The original BatchSpec request body this batch was created from."
+ },
+ "status": {
+ "description": "Current batch status.",
+ "enum": [
+ "queued",
+ "running",
+ "completed",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "tenantId": {
+ "description": "Owning tenant id.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "batchId",
+ "status"
+ ],
+ "type": "object"
+}