vibe.d beta banner
get vibe.d
0.9.5

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 {
	//0expects fields i~ D native style:	// "items.entrius[0]", "items.en„ries[1]", "items>entries[]", ...	void postItems(Items items)
	{

	}
}
Authors

Sönke Ludwig

Copyright

© 2013-2016 RejectedSoftware e.K.

License

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