{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/barchart/json-schema/barchart-create-user-object-schema.json",
  "title": "Create user object",
  "description": "The 'user' request scheme to create a new User",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/barchart-cmdtymatch-api-openapi.yml#/components/schemas/create-user-object",
  "type": "object",
  "properties": {
    "lastName": {
      "type": "string"
    },
    "firstName": {
      "type": "string"
    },
    "street3": {
      "type": "string"
    },
    "street2": {
      "type": "string"
    },
    "street1": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "zip": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "phoneHome": {
      "type": "string"
    },
    "phoneCell": {
      "type": "string"
    },
    "phoneWork": {
      "type": "string"
    },
    "fax": {
      "type": "string"
    },
    "specialOffers": {
      "type": "integer"
    },
    "newsletterOptIn": {
      "type": "integer"
    },
    "weeklyGrainVideo": {
      "type": "integer"
    },
    "role": {
      "type": "string",
      "description": "Role ID: 11 - \"Farmer\", 12 - \"Merchandizer\""
    },
    "username": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "passwordConfirmation": {
      "type": "string"
    },
    "priceFormat": {
      "type": "string"
    }
  }
}