netlify / open-api

Open API specification of Netlify's API

Home Page:https://open-api.netlify.com/#/default

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong response schema for createSite when there is an error

matrixise opened this issue · comments

When you read the documentation of createSite

When there is an error, the response schema is

{ message: string, code: integer<int64> }

but it's not the case because we get this JSON message:

{
    "errors": {
        "subdomain": ["must be unique"]
    }
}

Also, the status code is 422, it's not documented.

@matrixise I have the same issue but I can't identify the root cause of this error

Do you know what could be the problem that triggers this error?

Thank you for the help