Marks an embedded type as a member for allOf and sets the x-class value. On interface definitions there is another annotation on methods allowed swagger:name
12 Dec 2015 #polymorphism
A swagger:strfmt annotation names a type as a string formatter. The name is mandatory and that is what will be used as format name for this particular string format. String formats should only be used for very well known formats. String formats are well-known items. These imply a common well-documented set of formats that can be validated. The toolkit allows for creating your own string formats too. To create a custom string format you need to create a type that implements the (Unm/M)arshalText interfaces and the sql Scan and sql Value interfaces.
14 Nov 2015 #string formats