Update changelog 1.1.0.md

This commit is contained in:
lganzzzo 2020-05-19 04:41:47 +03:00
parent fe8bf161fe
commit 8ee11754d0

View File

@ -6,7 +6,7 @@ Please read carefully to prepare for migration.
Feel free to ask questions - [Chat on Gitter](https://gitter.im/oatpp-framework/Lobby)
Contents:
- [No more explicit ObjectWrapper](#no-more-explicit-objectwrapper)
- [No More Explicit ObjectWrapper](#no-more-explicit-objectwrapper)
- [Object-Mapping Simplified Primitives](#object-mapping-simplified-primitives)
- [Object-Mapping std Collections](#object-mapping-std-collections)
- [Type oatpp::Any](#type-oatppany)
@ -14,9 +14,9 @@ Contents:
- [DTO - Hashcode & Equals](#dto-hashcode-and-equals)
- [DTO - Fields Annotation](#dto-fields-annotation)
## No more explicit ObjectWrapper
## No More Explicit ObjectWrapper
Do not explicitly write `ObjectWrapper`
Do not explicitly write `ObjectWrapper` for collections.
DTO:
@ -41,6 +41,27 @@ ENDPOINT("POST", "body-dto", postWithBody,
}
```
### Except for Cases
For `Object` in some cases, you still have to explicitly specify `ObjectWrapper` type.
Examples:
When declaring a variable or a function return type:
```cpp
/* function parameters and return types */
MyDto::ObjectWrapper foo(const MyDto::ObjectWrapper& parameter) {
/* declaring a variable */
MyDto::ObjectWrapper myDto = MyDto::createShared();
auto myDto = MyDto::createShared(); // better.
return myDto;
}
```
## Object-Mapping Simplified Primitives
No more `<primitive>->getValue()`.