It seems like `http4k-contract` generates a `serve...
# http4k
m
It seems like
http4k-contract
generates a
servers
section like this if you don't specify any servers:
Copy code
"servers": [
    {
      "url": "/",
      "description": null
    }
  ]
It would make more sense to not generate any
servers
section in this case.
d
from the open api docs:
Copy code
An array of Server Objects, which provide connectivity information to a target server. If the servers property is not provided, or is an empty array, the default value would be a Server Object with a url value of /.
m
Right, then it is valid if the
"description": null
is removed.
d
that's valid anyway
the problem is that the renderer for the API docs always includes nulls (to cope with other bits of the spec)