sanity 3.72.2-server-side-schemas.17 → 3.72.2-server-side-schemas-1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3389,12 +3389,11 @@ Examples
3389
3389
  **Note**: This command is experimental and subject to change.
3390
3390
 
3391
3391
  Options
3392
- --workspace-name The name of the workspace to fetch the stored schema for
3393
- --dataset The dataset to fetch the schema from
3392
+ --id id of the schema to fetch
3394
3393
 
3395
3394
  Examples
3396
3395
  # Fetch the stored schema for the workspace 'default' in the dataset 'sanity-test'
3397
- sanity schema fetch --workspaceName default --dataset sanity-test
3396
+ sanity schema fetch --id sanity.workspace.schema.default
3398
3397
  `, fetchSchemaCommand = {
3399
3398
  name: "fetch",
3400
3399
  group: "schema",
@@ -3414,14 +3413,16 @@ var schemaGroup = {
3414
3413
  const description$1 = "", helpText$4 = `
3415
3414
  **Note**: This command is experimental and subject to change.
3416
3415
 
3417
- Required options:
3418
- --workspace-name The name of the workspace to fetch the stored schema for
3419
- Optional options:
3420
- --schema-path If you want to store the schema in a different path than the default one, you can specify it here.
3416
+ Options:
3417
+ --workspace The name of the workspace to fetch the stored schema for
3418
+ --path If you are not using the default static file path, you can specify it here.
3419
+ --custom-id you can specify a custom id for the schema. Useful if you want to store the schema in a different path than the default one.
3421
3420
 
3422
3421
  Examples
3423
- # Store the schema for the workspace 'default'
3424
- sanity schema store --workspace-name default
3422
+ # if no options are provided all workspace schemas will be stored
3423
+ sanity schema store
3424
+ # Store the schema for only the workspace 'default'
3425
+ sanity schema store --workspace default
3425
3426
  `, storeSchemaCommand = {
3426
3427
  name: "store",
3427
3428
  group: "schema",
@@ -3429,7 +3430,7 @@ Examples
3429
3430
  description: description$1,
3430
3431
  helpText: helpText$4,
3431
3432
  action: async (args, context) => (await Promise.resolve().then(function() {
3432
- return require("./storeSchemaAction.js");
3433
+ return require("./storeSchemasAction.js");
3433
3434
  })).default(args, context)
3434
3435
  }, description = "Validates all schema types specified in a workspace.", helpText$3 = `
3435
3436
  Options