-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typed JSON objects #84
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Routes or complex models sometimes contain
field.Object
types that would be useful to load into a specific object type on the client side to attach methods or additional meaning to it.For instance, the client might want to load each location in the following resource into a
Location
object:To make this easy to do, there could be a typed object. It would contain a type hint that would help clients add object hooks for that particular type. If a client would not recognize an object, it could simply parse it as regular JSON. The type hints would be an additional property such as
"$type": "location"
. Each type should have its own definition in the schema, but it wouldn't have any links attached to it.The text was updated successfully, but these errors were encountered: