Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ugh, or try having a mostly common response with just a slight mutation (eg the data is array of Company rather than Contact). Verbose for what could be a "mixing" or "sub-class" or something.


OpenAPI does support "subclassing" via allOf and oneOf.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: