prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  DNS Providers list doesn't  show type
  In the DNS Providers list, there is a column for the provider type, but it's always empty.
  
  Looking at the code, and the API requests, the issue seems to be with the dns_providers API call, which returns the list of all providers.
  
  There should be a providerType value in the JSON, but it's not there. 
  
  A quick glance at the `DnsProvidersNestedOutputSchema` shows that the value is called `providerType`, but in the database the field is called `provider_type` similar to `api_endpoint` which is called `api_endpoint` in the OutputSchema, so I guess, it's probably just mislabeled in the OutputSchema, and needs to be adjusted there, and maybe in the angular template.
  
  </issue>
  <code>
  [start of lemur/dns_providers/schemas.py]
  1 from marshmallow import fields
  2 
  3 from lemur.common.fields import ArrowDateTime
  4 from lemur.common.schema import LemurInputSchema, LemurOutputSchema
  5 
  6 
  7 class DnsProvidersNestedOutputSchema(LemurOutputSchema):
  8     __envelope__ = False
  9     id = fields.Integer()
  10     name = fields.String()
  11     providerType = fields.String()
  12     description = fields.String()
  13     credentials = fields.String()
  14     api_endpoint = fields.String()
  15     date_created = ArrowDateTime()
  16 
  17 
  18 class DnsProvidersNestedInputSchema(LemurInputSchema):
  19     __envelope__ = False
  20     name = fields.String()
  21     description = fields.String()
  22     provider_type = fields.Dict()
  23 
  24 
  25 dns_provider_output_schema = DnsProvidersNestedOutputSchema()
  26 
  27 dns_provider_input_schema = DnsProvidersNestedInputSchema()
  28
  [end of lemur/dns_providers/schemas.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/lemur/dns_providers/schemas.py b/lemur/dns_providers/schemas.py
  --- a/lemur/dns_providers/schemas.py
  +++ b/lemur/dns_providers/schemas.py
  @@ -8,7 +8,7 @@
       __envelope__ = False
       id = fields.Integer()
       name = fields.String()
  -    providerType = fields.String()
  +    provider_type = fields.String()
       description = fields.String()
       credentials = fields.String()
       api_endpoint = fields.String()
  
verification_info: {"golden_diff": "diff --git a/lemur/dns_providers/schemas.py b/lemur/dns_providers/schemas.py\n--- a/lemur/dns_providers/schemas.py\n+++ b/lemur/dns_providers/schemas.py\n@@ -8,7 +8,7 @@\n     __envelope__ = False\n     id = fields.Integer()\n     name = fields.String()\n-    providerType = fields.String()\n+    provider_type = fields.String()\n     description = fields.String()\n     credentials = fields.String()\n     api_endpoint = fields.String()\n", "issue": "DNS Providers list doesn't  show type\nIn the DNS Providers list, there is a column for the provider type, but it's always empty.\r\n\r\nLooking at the code, and the API requests, the issue seems to be with the dns_providers API call, which returns the list of all providers.\r\n\r\nThere should be a providerType value in the JSON, but it's not there. \r\n\r\nA quick glance at the `DnsProvidersNestedOutputSchema` shows that the value is called `providerType`, but in the database the field is called `provider_type` similar to `api_endpoint` which is called `api_endpoint` in the OutputSchema, so I guess, it's probably just mislabeled in the OutputSchema, and needs to be adjusted there, and maybe in the angular template.\n", "before_files": [{"content": "from marshmallow import fields\n\nfrom lemur.common.fields import ArrowDateTime\nfrom lemur.common.schema import LemurInputSchema, LemurOutputSchema\n\n\nclass DnsProvidersNestedOutputSchema(LemurOutputSchema):\n    __envelope__ = False\n    id = fields.Integer()\n    name = fields.String()\n    providerType = fields.String()\n    description = fields.String()\n    credentials = fields.String()\n    api_endpoint = fields.String()\n    date_created = ArrowDateTime()\n\n\nclass DnsProvidersNestedInputSchema(LemurInputSchema):\n    __envelope__ = False\n    name = fields.String()\n    description = fields.String()\n    provider_type = fields.Dict()\n\n\ndns_provider_output_schema = DnsProvidersNestedOutputSchema()\n\ndns_provider_input_schema = DnsProvidersNestedInputSchema()\n", "path": "lemur/dns_providers/schemas.py"}]}