UNPKG

manifest

Version:

The backend for AI code editors

36 lines (35 loc) 1.54 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://schema.manifest.build/definitions/property-options/image-options-schema.json", "title": "Image Options Schema", "description": "Specific options for the \"image\" property type.", "type": "object", "properties": { "sizes": { "type": "object", "description": "An object containing named size options for the image.", "additionalProperties": { "type": "object", "properties": { "width": { "type": "number", "description": "The width of the image." }, "height": { "type": "number", "description": "The height of the image." }, "fit": { "description": "The method by which the image is resized when width and height are provided. See Sharp documentation about \"fit\": https://sharp.pixelplumbing.com/api-resize", "type": "string", "enum": ["contain", "cover", "fill", "inside", "outside"] } }, "additionalProperties": false, "description": "An object representing the size options such as width, height, and fit for a specific size name." } } }, "required": ["sizes"], "additionalProperties": false }