Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Last active January 20, 2026 23:17
Show Gist options
  • Select an option

  • Save elliotlarson/211debfc66a881a399f62925c3e44370 to your computer and use it in GitHub Desktop.

Select an option

Save elliotlarson/211debfc66a881a399f62925c3e44370 to your computer and use it in GitHub Desktop.
API V4 Test: Non-US project with INCORRECT field name (non_us_postal_code) - Should return 422
{
"_comment": "Test 2: Non-US project with INCORRECT field name (non_us_postal_code) - Expected: 422 Unprocessable Content",
"_note": "This test verifies that the OLD typo field name is rejected. Replace USER_EMAIL_HERE and panel.id with valid values.",
"project": {
"name": "Test Canadian Project - Incorrect Field (Should Fail)",
"street": "100 Queen Street West",
"city": "Toronto",
"state": "ON",
"country": "CA",
"non_us_postal_code": "M5H 2N2",
"asce": "7-16",
"riskCategory": "II",
"railPlatform": "xr",
"panelFinish": "black",
"endClamp": "efo",
"termsOfServiceAcceptedAt": "2024-01-15T10:30:00Z",
"discount": 0.0,
"user": {
"email": "USER_EMAIL_HERE"
},
"panel": {
"id": "PANEL_ID_HERE"
},
"projectSite": {
"lat": 43.6532,
"lng": -79.3832
},
"environmental": {
"snowLoad": 30,
"windSpeed": 115,
"windExposure": "B",
"siteElevation": 100,
"sDs": 0.282,
"seismicDesignCategory": "C"
},
"detail": {
"roofMaterial": "cs",
"railType": "XR10",
"roofMaterialFamily": "cs",
"roofAttachment": "ff2",
"attachmentHardware": "t-bolt",
"staggeredAttachments": false,
"conduitMounts": "qm_bug_cm",
"modulesExposed": false,
"modulesEdge": false,
"specificGravity": 0.42,
"qmConduitMountPenetrationFlashingForCompShingle": true,
"roofShape": "hip",
"railCutting": true,
"availableLengths": [168, 204]
},
"roofPlanes": [
{
"height": 15,
"rafterSpacing": 16,
"roofSlope": 22,
"roofSections": [
{
"portrait": false,
"layout": {
"rows": 3,
"columns": 8,
"design": "111111111111111111111111"
}
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment