code: def build_definition(self, add_defintitions=True, nullable=False):
      properties = dict(
          (name, self.maybe_build(value))
          for name, value in self.properties.items()
      )
      schema = {
          "type": "object",
          "additionalProperties": False,
          "properties": properties,
      }
      if self.required:
          schema["required"] = self.required
      if self.definitions and add_defintitions:
          schema["definitions"] = dict(
              (
                  builder.type_name,
                  builder.build_definition(False, False),
              )
              for builder in self.definitions
          )
      return schema
  
imports: from __future__ import absolute_import
  from collections import defaultdict
  import six
  from .None import errors
  from .fields import NotSet
label_desc: Use image node_id 5 for calling the ObjectBuilder obj's underlying member method code with example usage: obj.build_definition(add_defintitions, nullable) and returns: schema