balanced / balanced-api

Balanced API specification.
220 stars 72 forks source link

Passing just country_code (no postal_code) fails validation #554

Closed ksheurs closed 9 years ago

ksheurs commented 10 years ago

We are trying to pass country_code to balanced.js with no postal_code in some cases.

This seems to throw the below validation error:

http://cl.ly/image/0X0A133i3p3e

Setting postal_code: null resolves. Should the postal_code field really be required here (even if null)?

remear commented 9 years ago

I think this only applies to API 1.0, which is deprecated. If something like this is occurring in API 1.1, please provide a reproducible example (jsfiddle or a direct API call) and we'll reopen discussion.