from common import required_string

_schema = {
    # company id ('id')
    'n': required_string,                       # name
    'p': {'type': 'string', 'nullable': True},  # password
}

definition = {
    'url': 'companies',
    'item_title': 'company',
    # 'additional_lookup': company_lookup,
    'schema': _schema,
}

from common import required_string

_schema = {
    # company id ('id')
    'name': required_string,
    'password': {'type': 'string', 'nullable': True},
    'state_or_province': {'type': 'string', 'nullable': True},
}

definition = {
    'url': 'companies',
    'item_title': 'company',
    # 'additional_lookup': company_lookup,
    'schema': _schema,
}

Add a snake_cased field to the test document.
Add a snake_cased field to the test document.

  from common import required_string
  
  _schema = {
      # company id ('id')
-     'n': required_string,                       # name
+     'name': required_string,
-     'p': {'type': 'string', 'nullable': True},  # password
+     'password': {'type': 'string', 'nullable': True},
+     'state_or_province': {'type': 'string', 'nullable': True},
  }
  
  definition = {
      'url': 'companies',
      'item_title': 'company',
      # 'additional_lookup': company_lookup,
      'schema': _schema,
  }
  
Add a snake_cased field to the test document.
## Code Before:
from common import required_string

_schema = {
    # company id ('id')
    'n': required_string,                       # name
    'p': {'type': 'string', 'nullable': True},  # password
}

definition = {
    'url': 'companies',
    'item_title': 'company',
    # 'additional_lookup': company_lookup,
    'schema': _schema,
}

## Instruction:
Add a snake_cased field to the test document.
## Code After:
from common import required_string

_schema = {
    # company id ('id')
    'name': required_string,
    'password': {'type': 'string', 'nullable': True},
    'state_or_province': {'type': 'string', 'nullable': True},
}

definition = {
    'url': 'companies',
    'item_title': 'company',
    # 'additional_lookup': company_lookup,
    'schema': _schema,
}
