{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "NgGenerateComponentSchematicsSchema",
  "title": "Generate Otter Component",
  "description": "ng generate Otter Component",
  "properties": {
    "projectName": {
      "type": "string",
      "description": "Project name",
      "alias": "project"
    },
    "componentName": {
      "type": "string",
      "description": "Component name",
      "x-prompt": "Your component name?",
      "minLength": 1,
      "$default": {
        "$source": "argv",
        "index": 0
      }
    },
    "path": {
      "type": "string",
      "$default": {
        "$source": "workingDirectory"
      },
      "description": "Directory containing the components"
    },
    "prefix": {
      "type": "string",
      "description": "Prefix of your component selector"
    },
    "componentStructure": {
      "type": "string",
      "enum": [
        "full",
        "presenter",
        "simple"
      ],
      "description": "Structure of the component you want to generate ('full' | 'presenter' | 'simple')",
      "default": "presenter"
    },
    "useComponentFixtures": {
      "type": "boolean",
      "description": "Generate component fixtures for tests"
    },
    "useOtterConfig": {
      "type": "boolean",
      "description": "Generate component with Otter configuration"
    },
    "useOtterAnalytics": {
      "type": "boolean",
      "description": "Generate component with Otter analytics architecture"
    },
    "useLocalization": {
      "type": "boolean",
      "description": "Generate component with localization"
    },
    "useContext": {
      "type": "boolean",
      "description": "Generate component context"
    },
    "description": {
      "type": "string",
      "description": "Component description",
      "x-prompt": "Your presenter description?"
    },
    "activateDummy": {
      "type": "boolean",
      "description": "Generate dummy values",
      "default": false
    },
    "skipLinter": {
      "type": "boolean",
      "description": "Skip the linter process which includes EsLint and EditorConfig rules applying",
      "default": false
    },
    "standalone": {
      "type": "boolean",
      "description": "Whether the generated component is standalone.",
      "default": true
    },
    "type": {
      "type": "string",
      "description": "Custom type to append to the component's file name"
    }
  },
  "additionalProperties": true,
  "required": [
    "componentName"
  ]
}
