parameters: (ctxt, ast_field)
docstring: Validate the doc_sequence is an array of plain objects.
docstring_summary: Validate the doc_sequence is an array of plain objects.
docstring_tokens: Validate the doc_sequence is an array of plain objects .
function: def _validate_doc_sequence_field(ctxt, ast_field):
      # type: (errors.ParserContext, ast.Field) -> None
      """Validate the doc_sequence is an array of plain objects."""
      if not ast_field.supports_doc_sequence:
          return
  
      assert ast_field.array
  
      # The only allowed BSON type for a doc_sequence field is "object"
      if ast_field.bson_serialization_type != ['object']:
          ctxt.add_bad_non_object_as_doc_sequence_error(ast_field, ast_field.name)
function_tokens: def _validate_doc_sequence_field ( ctxt , ast_field ) : # type: (errors.ParserContext, ast.Field) -> None if not ast_field . supports_doc_sequence : return assert ast_field . array # The only allowed BSON type for a doc_sequence field is "object" if ast_field . bson_serialization_type != [ 'object' ] : ctxt . add_bad_non_object_as_doc_sequence_error ( ast_field , ast_field . name )