We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1947fea commit e22856dCopy full SHA for e22856d
README.md
@@ -343,6 +343,23 @@ func (post Post) JSONAPIRelationshipMeta(relation string) *Meta {
343
}
344
```
345
346
+### Custom types
347
+
348
+Custom types are supported for primitive types, only, as attributes. Examples,
349
350
+```go
351
+type CustomIntType int
352
+type CustomFloatType float64
353
+type CustomStringType string
354
+```
355
356
+Types like following are not supported, but may be in the future:
357
358
359
+type CustomMapType map[string]interface{}
360
+type CustomSliceMapType []map[string]interface{}
361
362
363
### Errors
364
This package also implements support for JSON API compatible `errors` payloads using the following types.
365
0 commit comments