{
  "$schema": "http://json-schema.org/schema",
  "$id": "component-generator",
  "type": "object",
  "properties": {
    "prompts-profile": {
      "type": "string",
      "enum": ["basic", "sample", "advanced"],
      "description": "The prompting profile to use (determines which other options are relevant)."
    },
    "library": {
      "type": "string",
      "description": "Library name",
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "name": {
      "type": "string",
      "description": "Component name"
    },
    "props": {
      "type": "string",
      "description": "Component props definition"
    },
    "events": {
      "type": "string",
      "description": "Component events definition"
    },
    "copy": {
      "type": "string",
      "description": "Component copy/text content"
    },
    "styles": {
      "type": "string",
      "description": "Component styles definition"
    },
    "tests": {
      "type": ["boolean", "string"],
      "description": "Whether to generate tests and test configuration"
    },
    "storybook": {
      "type": ["boolean", "string"],
      "description": "Whether to generate Storybook stories"
    },
    "reexport": {
      "type": ["boolean", "string"],
      "description": "Whether to reexport the component"
    },
    "sg-components": {
      "type": "string",
      "description": "Style guide components to use"
    },
    "data-testid": {
      "type": "string",
      "description": "Data test ID for testing"
    }
  },
  "required": []
}
