vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function nestedNameStyle

Determines how nested D fields/array entries are mapped to form field names. Note that this attribute only works if applied to the class.

vibe.web.web.NestedNameStyleAttribute nestedNameStyle (
  NestedNameStyle style
);

Example

struct Items {
	int[] entries;
}

@nestedNameStyle(NestedNameStyle.d)
class MyService {
	// expects fields in D native style:
	// "items.entries[0]", "items.entries[1]", "items.entries[]", ...
	void postItems(Items items)
	{

	}
}
Authors

Sönke Ludwig

Copyright

© 2013-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.