|
701 | 701 | "ApiExceptionPayload": { |
702 | 702 | "properties": { |
703 | 703 | "timestamp": { "type": "integer", "title": "Timestamp" }, |
704 | | - "status": { "type": "integer", "title": "Status" }, |
705 | 704 | "message": { "type": "string", "title": "Message" }, |
706 | 705 | "origin": { "type": "string", "title": "Origin" }, |
| 706 | + "status": { "type": "integer", "title": "Status" }, |
707 | 707 | "trigger": { "type": "string", "title": "Trigger" }, |
708 | 708 | "type": { "type": "string", "title": "Type" }, |
709 | 709 | "description": { "type": "string", "title": "Description" }, |
|
715 | 715 | } |
716 | 716 | }, |
717 | 717 | "type": "object", |
718 | | - "required": ["timestamp", "status", "message", "origin"], |
| 718 | + "required": ["timestamp", "message", "origin"], |
719 | 719 | "title": "ApiExceptionPayload" |
720 | 720 | }, |
721 | 721 | "ApplyResponse": { |
|
930 | 930 | }, |
931 | 931 | "Environment": { |
932 | 932 | "properties": { |
933 | | - "name": { "type": "string", "title": "Name" }, |
| 933 | + "name": { "type": "string", "title": "Name", "default": "prod" }, |
| 934 | + "suffix_target": { |
| 935 | + "allOf": [ |
| 936 | + { "$ref": "#/components/schemas/EnvironmentSuffixTarget" } |
| 937 | + ], |
| 938 | + "default": "schema" |
| 939 | + }, |
934 | 940 | "snapshots": { |
935 | 941 | "items": { "$ref": "#/components/schemas/SnapshotTableInfo" }, |
936 | 942 | "type": "array", |
|
968 | 974 | }, |
969 | 975 | "additionalProperties": false, |
970 | 976 | "type": "object", |
971 | | - "required": ["name", "snapshots", "start_at", "plan_id"], |
| 977 | + "required": ["snapshots", "start_at", "plan_id"], |
972 | 978 | "title": "Environment", |
973 | | - "description": "Represents an isolated environment.\n\nEnvironments are isolated workspaces that hold pointers to physical tables.\n\nArgs:\n name: The name of the environment.\n snapshots: The snapshots that are part of this environment.\n start_at: The start time of the environment.\n end_at: The end time of the environment.\n plan_id: The ID of the plan that last updated this environment.\n previous_plan_id: The ID of the previous plan that updated this enviornment.\n expiration_ts: The timestamp when this environment will expire.\n finalized_ts: The timestamp when this environment was finalized.\n promotion_snapshot_ids: The IDs of the snapshots that are promoted in this environment\n (i.e. for which the views are created). If not specified, all snapshots are promoted." |
| 979 | + "description": "Represents an isolated environment.\n\nEnvironments are isolated workspaces that hold pointers to physical tables.\n\nArgs:\n snapshots: The snapshots that are part of this environment.\n start_at: The start time of the environment.\n end_at: The end time of the environment.\n plan_id: The ID of the plan that last updated this environment.\n previous_plan_id: The ID of the previous plan that updated this environment.\n expiration_ts: The timestamp when this environment will expire.\n finalized_ts: The timestamp when this environment was finalized.\n promoted_snapshot_ids: The IDs of the snapshots that are promoted in this environment\n (i.e. for which the views are created). If not specified, all snapshots are promoted." |
| 980 | + }, |
| 981 | + "EnvironmentSuffixTarget": { |
| 982 | + "type": "string", |
| 983 | + "enum": ["schema", "table"], |
| 984 | + "title": "EnvironmentSuffixTarget", |
| 985 | + "description": "An enumeration." |
974 | 986 | }, |
975 | 987 | "EvaluateInput": { |
976 | 988 | "properties": { |
|
0 commit comments