docs: def _get_example_from_properties(self, spec):
          """Get example from the properties of an object defined inline.
  
          Args:
              prop_spec: property specification you want an example of.
  
          Returns:
              An example for the given spec
              A boolean, whether we had additionalProperties in the spec, or not
          """
          local_spec = deepcopy(spec)
  
          # Handle additionalProperties if they exist
          # we replace additionalProperties with two concrete
          # properties so that examples can be generated
          additional_property = False
          if 'additionalProperties' in local_spec:
              additional_property = True
              if 'properties' not in local_spec:
                  local_spec['properties'] = {}
              local_spec['properties'].update({
                  'any_prop1': local_spec['additionalProperties'],
                  'any_prop2': local_spec['additionalProperties'],
              })
              del(local_spec['additionalProperties'])
              required = local_spec.get('required', [])
              required += ['any_prop1', 'any_prop2']
              local_spec['required'] = required
  
          example = {}
          properties = local_spec.get('properties')
          if properties is not None:
              required = local_spec.get('required', properties.keys())
  
              for inner_name, inner_spec in properties.items():
                  if inner_name not in required:
                      continue
                  partial = self.get_example_from_prop_spec(inner_spec)
                  # While get_example_from_prop_spec is supposed to return a list,
                  # we don't actually want that when recursing to build from
                  # properties
                  if isinstance(partial, list):
                      partial = partial[0]
                  example[inner_name] = partial
  
          return example, additional_property