changedOutput schema / properties / glossary / properties / fetched / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "properties": {
- "connection": {
- "additionalProperties": {},
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "status"
- ],
- "type": "object"
- },
- "dataSource": {
- "additionalProperties": {},
- "properties": {
- "id": {
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- },
- "lastAttempt": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "at": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "fetched",
- "failed"
- ],
- "type": "string"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "at",
- "outcome",
- "reason"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "lastGoodFetchAt": {
- "description": "When its last good fetch started; null until one",
- "type": [
- "string",
- "null"
- ]
- },
- "mapping": {
- "additionalProperties": {},
- "properties": {
- "sourceLocale": {
- "type": "string"
- }
- },
- "required": [
- "sourceLocale"
- ],
- "type": "object"
- },
- "omittedWarnings": {
- "type": "number"
- },
- "pendingMapping": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "sourceLocale": {
- "type": "string"
- }
- },
- "required": [
- "sourceLocale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "additionalProperties": {},
- "properties": {
- "state": {
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "type": "object"
- },
- "warnings": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "row": {
- "additionalProperties": {},
- "properties": {
- "id": {
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- }
- },
- "required": [
- "row"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "connection",
- "dataSource",
- "lastGoodFetchAt",
- "lastAttempt",
- "status",
- "mapping",
- "pendingMapping",
- "warnings",
- "omittedWarnings"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "oneOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "connection": {
+ "additionalProperties": {},
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "status"
+ ],
+ "type": "object"
+ },
+ "dataSource": {
+ "additionalProperties": {},
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ },
+ "lastAttempt": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "at": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "fetched",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "at",
+ "outcome",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "lastGoodFetchAt": {
+ "description": "When its last good fetch started; null until one",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "mapping": {
+ "additionalProperties": {},
+ "properties": {
+ "sourceLocale": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "sourceLocale"
+ ],
+ "type": "object"
+ },
+ "omittedWarnings": {
+ "type": "number"
+ },
+ "pendingMapping": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "sourceLocale": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "sourceLocale"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sourceKind": {
+ "const": "notion",
+ "description": "Its entries come from a Notion data source, through `connection`",
+ "type": "string"
+ },
+ "status": {
+ "additionalProperties": {},
+ "properties": {
+ "state": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "row": {
+ "additionalProperties": {},
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "row"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "sourceKind",
+ "connection",
+ "dataSource",
+ "mapping",
+ "pendingMapping",
+ "lastGoodFetchAt",
+ "lastAttempt",
+ "status",
+ "warnings",
+ "omittedWarnings"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "branch": {
+ "type": "string"
+ },
+ "lastAttempt": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "at": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "fetched",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "at",
+ "outcome",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "lastFetchedCommitSha": {
+ "description": "The commit its last good fetch read the file at; null until one",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "lastGoodFetchAt": {
+ "description": "When its last good fetch started; null until one",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "omittedWarnings": {
+ "type": "number"
+ },
+ "path": {
+ "type": "string"
+ },
+ "pendingFile": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "branch": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "branch",
+ "path"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "A changed branch and path (set_glossary_file) awaiting their first good fetch"
+ },
+ "repository": {
+ "additionalProperties": {},
+ "description": "By GitHub’s repository id, which survives a rename",
+ "properties": {
+ "fullName": {
+ "type": "string"
+ },
+ "id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "fullName"
+ ],
+ "type": "object"
+ },
+ "sourceKind": {
+ "const": "repository",
+ "description": "Its entries come from one TBX or CSV file of a GitHub repository, at `path` on `branch`",
+ "type": "string"
+ },
+ "sourceLocale": {
+ "type": "string"
+ },
+ "status": {
+ "additionalProperties": {},
+ "description": "`needs_reconnect`: no GitHub App installation of the organisation can see the repository. `file_pending`: `pendingFile` awaits its first good fetch; `failed` with `filePending: true`: the fetch with it failed, keeping the current branch, path and entries",
+ "properties": {
+ "state": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "description": "Rows, columns or language sections of the file skipped or partly read",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "sourceKind",
+ "repository",
+ "branch",
+ "path",
+ "pendingFile",
+ "sourceLocale",
+ "lastGoodFetchAt",
+ "lastFetchedCommitSha",
+ "lastAttempt",
+ "status",
+ "warnings",
+ "omittedWarnings"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+]