You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pretty much all of the controllers return json like this render :created, json: domain, type: ::PlaceOS::Portal::Models::Domain. If the returned object is a Clear model then the json method will be whatever Clear does, else there are some objects that use include JSON::Serializable for json.
Implement #as_json or expand Clear JSON Deserialise model to accept annotation as macro arg in
examples
https://github.com/place-labs/staff-api/blob/c099e3befe407b8a2c6c8a3958d704706c19fa4b/src/models/tenant.cr#L67-L74
https://github.com/place-labs/staff-api/blob/c099e3befe407b8a2c6c8a3958d704706c19fa4b/src/models/booking.cr#L151-L159
Implement #as_json for 1, 2
The text was updated successfully, but these errors were encountered: