Sindre Røkenes Myren
Sindre Røkenes Myren
There is no specific support for Auto-Incremental IDs in rest-layer itself. However I belive a `resource.Storer` implementation can alter the passed in items (e.g. populate an ID field) on insert...
The SQL backend I know about is here: - https://github.com/apuigsech/rest-layer-sql A good starting point may be to fork that and start trying out different things. You can start experimenting with...
a) ID is a string. ID is always a string when read from the URL as opposed to read from JSON, where it can have different types. To fix this,...
Here is a possible less hacky approach you can try (add this field definition to your `rest-layer-sql` fork). PS! Haven't looked up all the definitions, so the code below is...
Let's keep it open for now @ishan1608, and you can keep asking your questions here. Relabeled renamed it.
I thing the right interface if we are going to break things anyway, looks more or less like this: ```go type Validator interface{ Validate(ctx context.Context, value, original interface{}) (interface{}, error)...
Will close issues that relates to a broader redesign of the schema package (such as this one), leaving only #77 open.
Reopen as a bug; no matter if w are able to solve this easily in the current design, I guess we need to still track it.
This is related to #77. Long story short, the second approach (the newest syntax) is recommended, and should work for _more_ cases. The first approach (the earliest implementation of sub-schemas)...