              description=description
          )
      elif isinstance(field, serializers.Serializer):
          return coreschema.Object(
              properties=OrderedDict([
                  (key, field_to_schema(value))
                  for key, value
                  in field.fields.items()
              ]),
              title=title,
              description=description
 
</s> remove             ]),
 </s> add             }, </s> remove         errors = OrderedDict()
 </s> add         errors = {} </s> remove         choices = list(OrderedDict.fromkeys(field.choices))  # preserve order and remove duplicates
 </s> add         choices = list(dict.fromkeys(field.choices))  # preserve order and remove duplicates </s> remove     ret = OrderedDict()
 </s> add     ret = {} </s> remove         return OrderedDict([
            (field_name, self.get_field_info(field))
 </s> add         return {
            field_name: self.get_field_info(field)
            properties={
                key: field_to_schema(value)
              description=description
          )
      elif isinstance(field, serializers.Serializer):
          return coreschema.Object(
            properties={
                key: field_to_schema(value)
            properties={
                key: field_to_schema(value)
                  for key, value
                  in field.fields.items()
              ]),
              title=title,
              description=description
keep keep keep keep replace replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/schemas/coreapi.py