The request’s shape comes first
Before any roof check, the request is checked against the API reference: an unknown or misspelt field, a wrong type, or a value out of range. A request that fails answers422 validation_failed, with errors pointing at each field and no check or severity, and the roof checks do not run:
A problem
Each problem the roof checks find has the same four fields:severity is an open enum: treat an unknown value as major. check numbers may be added too.
Where problems appear
- Checking a roof.
POST /v1/esx-exports/checksanswers200withbuildableand every problem found inproblems. A roof that would be refused still gets200, withbuildable: false. Thereferenceis not checked for duplicates here. - A roof refused.
POST /v1/esx-exportsandPOST /v1/esx-exports/{id}/versionsanswer422 validation_failedwhen there is at least oneerror.errorsthen lists every problem the checks found, warnings included. - A roof built. The export’s
warningslists the latest version’s warnings: at most 100,majorones first when there are more.major_warningsandminor_warningscount them exactly, andcleanistruewhen there are none.warningsnever holds anerror.
north names an edge rake-nx that does not exist, and the edge it meant, rake-ne, lies on no face:
The checks
Critical problems
A roof with any of these is refused (severity: error).
A check 1 problem stops checks 2 to 6. A missing ZIP, latitude or longitude never reaches the roof checks: it is a shape error, a
422 with no check, as in The request’s shape comes first.
Warnings
A roof with only these is built. Each warning says what OSA did.Before you ask for the file
The first time you ask for a live export’s ESX is charged as one use, whether or not it has warnings. Look atclean and major_warnings first, and correct the roof with a new version if you need to. See What counts as a use.