{"title":"Generate Eight Mansions map","fields":[{"key":"kua","name":"kua","kind":"number","required":false,"description":"Kua number to build the map for, if you already have one. Send this OR date and gender, not neither. A Kua of 5 is read as the Kua 2 chart, since 5 has no direction of its own.","min":1,"max":9,"example":6,"fold":true},{"key":"date","name":"date","kind":"date","required":true,"description":"Birth date in YYYY-MM-DD format, used to derive the Kua when no kua is sent. Requires gender alongside it. A date is read at the start of its day, so a birth date landing exactly on the year boundary is placed in the outgoing year.","example":"1985-07-15"},{"key":"gender","name":"gender","kind":"tiles","required":true,"description":"Selects the Kua formula variant. Required when the Kua is being derived from a birth date.","enum":["male","female"],"example":"male"},{"key":"yearBoundary","name":"yearBoundary","kind":"tiles","required":false,"description":"Which boundary starts the Chinese year when the Kua is derived from a birth date. Defaults to li-chun, the classical position. Ignored when a kua is sent directly, and echoed back either way.","enum":["li-chun","lunar-new-year"],"default":"li-chun","example":"li-chun","fold":true},{"key":"facing","name":"facing","kind":"tiles","required":false,"description":"Optional compass sector the main door faces, one of North, Northeast, East, Southeast, South, Southwest, West, Northwest. When sent, the response names the star sitting on that sector so a caller can judge an entrance without scanning the whole map.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Southeast","fold":true}],"hasLang":true,"requiredAnyOf":[["date","gender"],["kua"]],"groups":[{}],"opensOnLoad":false}