Image Chooser

Image chooser control Image chooser control selected image

Value

The Image Chooser control expects it’s value to be compatible with the image resource.

Schema
{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "title": "Image chooser control",
  "description": "Image chooser control that allows the seller to upload or pick an image",
  "type": "object",
  "required": [
    "option"
  ],
  "properties": {
    "control": {
      "const": "image-chooser"
    },
    "value": {
      "title": "Value",
      "description": "Image resource value",
      "type": "object",
      "properties": {
        "src": {
          "type": "string",
          "title": "Image source",
          "description": "Source url"
        }
      }
    }
  }
}
Example
{
  "control": "image-chooser",
  "value": {
    "src": "/uploads/b/3919bcbf4529413438bcd01542320038b716586958b52eb042caa24cd9d4f2d0/yellow_hat.jpg"
  }
}

See also