onyxframework / sql

A delightful SQL ORM ☺️
https://api.onyxframework.com/sql
MIT License
91 stars 7 forks source link

Add JSON and YAML serialization-related annotations in `schema` macro #98

Open vladfaust opened 5 years ago

vladfaust commented 5 years ago

TIL you can define the same annotation multiple times. This allows to define, for example, JSON::Field annotation without actually requiring "json"! Therefore I could put serialization-related annotations right into the schema macro.