Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dmcg
on Feb 18, 2018
|
parent
|
context
|
favorite
| on:
JSON Schema
Does oneOf not cover it?
grumpyprole
on Feb 18, 2018
[–]
oneOf looks like it could be used to encode sum types together with a custom string tag, but that's not the first class treatment that records get.
henryluo
on March 3, 2018
|
parent
[–]
Mark (
https://mark.js.org
) is a new notation that extends JSON with a type-name, which can be a more structured way to encode type info, instead of using custom string tag.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: