Commit Graph

1464 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
6dd493ca5f
Merge pull request #642 from doufu3344/DTO_float_fmt
Supported for specifying float value format on serializing DTO to JSON
2022-11-08 00:44:04 +02:00
doufu3344
9ae9644cfe Fix serialization error when running parallel tasks 2022-11-01 10:02:14 +08:00
doufu3344
1564eba64b remove float format info in serializing stream 2022-10-31 10:42:43 +08:00
doufu3344
eb9ffc36f5 JSON Serializer can change format of default floating value
Format prioritization: DTO field > Serializer > Default(%.16g)

Usage:
```
oatpp::parser::json::mapping::ObjectMapper mapperFmt;
mapperFmt.getSerializer()->getConfig()->floatStringFormat = "%.1f";
```

patch for: f78c4c026f
2022-10-13 09:22:25 +08:00
doufu3344
f78c4c026f Added support for specifying floating value's format on serializing DTO to JSON
The program does not check the format, you need to make sure it is right.

demo:
class MyDto : public DTO {

  DTO_INIT(MyDto, DTO)

  DTO_FIELD_INFO(value) {
    info->format = "%.2f";
  }
  DTO_FIELD(Float64, value);

};
2022-10-11 14:29:58 +08:00
Leonid Stryzhevskyi
bbe455af60
Merge pull request #616 from oatpp/fix_crash_on_endpoint_params_validation
Fix crash on Endpoint params validation
2022-09-01 03:39:13 +03:00
Leonid Stryzhevskyi
e89e4654c4 Fix crash on Endpoint params validation 2022-09-01 03:22:56 +03:00
Leonid Stryzhevskyi
2f975359c5
Merge pull request #582 from sidaf/fix_windows
Cross-compile Windows Fix
2022-04-27 14:51:25 +03:00
sidaf
143ccdb73a Fix 2022-04-20 23:19:36 +01:00
lganzzzo
306a01c1e2 Fix default implementation method for new ErrorHandler 2022-02-24 01:46:08 +02:00
Leonid Stryzhevskyi
0a3969b157
Merge pull request #565 from JeremyGuinn/error-handler-enhancements
Add new virtual handleError method to handle the original error
2022-02-24 00:58:05 +02:00
Jeremy Guinn
eff27e6aa5 Add new virtual handleError method to handle the original error 2022-02-20 13:56:02 -07:00
Leonid Stryzhevskyi
3805abfcb6
Merge pull request #558 from yikenan/master
move the getType() function implementation from hpp file to cpp file
2022-02-07 02:16:10 +02:00
yikenan
a807640b48 move the getType() function implementation from hpp file to cpp file, see issue 557 2022-02-04 16:04:25 +08:00
Leonid Stryzhevskyi
061e38ef11
Merge pull request #555 from yikenan/master
Delete redundant assignments
2022-01-24 04:21:29 +02:00
yikenan
07e895f0fe Delete redundant assignments 2022-01-24 10:07:39 +08:00
Leonid Stryzhevskyi
b8ee9fce3a
Merge pull request #550 from oatpp/windows_fix_dual_stack_socket
tcp::server::ConnectionProvider: Fix dual-stack sockets on Windows (#…
2022-01-17 02:26:33 +02:00
lganzzzo
fc4bf4e983 tcp::server::ConnectionProvider: Fix dual-stack sockets on Windows (#549). 2022-01-17 02:11:16 +02:00
Leonid Stryzhevskyi
b8ea2b273d
Merge pull request #542 from dencrypt-jacob/no_test_lib
Introduce OATPP_LINK_TEST_LIBRARY
2022-01-10 02:40:30 +02:00
Jacob Lauritzen
0130e6da57 Use OATPP_LINK_TEST_LIBRARY instead of OATPP_BUILD_TESTS 2022-01-07 09:54:48 +01:00
Jacob Lauritzen
91304ac1e1 Introduce OATPP_LINK_TEST_LIBRARY 2022-01-07 09:28:23 +01:00
Jacob Lauritzen
2aa6c233f6 Only build oatpp-test of OATPP_BUILD_TESTS is YES 2022-01-06 11:36:10 +01:00
Leonid Stryzhevskyi
ebf0074ef4
Merge pull request #540 from oatpp/orm_migration_better_api
orm::SchemaMigration: add 'getSchemaVersion' method
2022-01-03 17:25:30 +02:00
lganzzzo
657f8070bf orm::SchemaMigration: add 'getSchemaVersion' method 2022-01-03 17:07:23 +02:00
Leonid Stryzhevskyi
f67440cd5e
Merge pull request #538 from p4czyk/docs/typo-in-dto
Fix some typos in documentation 📖
2021-12-29 23:58:23 +02:00
p4czyk
76e0ee18d6
Fix other macoro typos 2021-12-29 22:11:36 +01:00
p4czyk
0985153682
Fix typo in DTO 2021-12-29 21:52:19 +01:00
Leonid Stryzhevskyi
e91cb4079c
Merge pull request #535 from oatpp/#534
Added support for multiple parts with same name in oatpp::web::mime::multipart::PartList
2021-12-21 20:07:00 +02:00
MHaselmaier
b0bca97a0d Removed '<' and '>' from documentation 2021-12-21 18:36:54 +01:00
MHaselmaier
c54ac2f612 Added support for multiple parts with same name in oatpp::web::mime::multipart::PartList 2021-12-21 17:26:50 +01:00
Leonid Stryzhevskyi
4b8d6a40a5
Merge pull request #533 from langchr86/fix/negativ_number_parsing_in_any
fix negativ number parsing in oatpp::Any
2021-12-19 12:56:56 +02:00
Christian Lang
6077ea434b fix negativ number parsing in oatpp::Any 2021-12-19 10:10:01 +01:00
Leonid Stryzhevskyi
d06a98dfc4
Merge pull request #532 from oatpp/fix_connection_upgrade_sequence
HttpProcessor: Fix connection upgrade sequence.
2021-12-17 04:00:58 +02:00
lganzzzo
73747dd444 HttpProcessor: Fix connection upgrade sequence. 2021-12-17 03:42:46 +02:00
Leonid Stryzhevskyi
96881f1381
Update azure-pipelines.yml 2021-12-15 02:41:23 +02:00
Leonid Stryzhevskyi
17c655a473
Merge pull request #529 from langchr86/fix/any_can_parse_integer
allow oatpp::Any to parse directly to UInt64 or Int64
2021-12-15 00:34:34 +02:00
Christian Lang
24a2af532a allow oatpp::Any to parse directly to UInt64 or Int64 2021-12-14 11:00:15 +01:00
Leonid Stryzhevskyi
568c96d40a
Merge pull request #527 from ArnaudGallardo/fix/host-header-with-port
fix: add port in host header
2021-12-03 16:58:23 +02:00
Arnaud-Marie Gallardo
3372ad9dff fix: add port in host header 2021-12-03 15:29:26 +01:00
Leonid Stryzhevskyi
9f876c4851
Merge pull request #526 from Sergii-Ladniuk/tmp-extension
Add a TemporaryFile constructor accepting the file extension
2021-12-03 01:49:09 +02:00
Leonid Stryzhevskyi
ee61f12ba7
Merge pull request #524 from Balluff/feature/cpack
Feature/cpack
2021-12-03 01:46:41 +02:00
Sergii Ladniuk
63035b2d74 Add a TemporaryFile constructor accepting the file extension 2021-12-02 18:03:44 +02:00
Leonid Stryzhevskyi
4a40edc0c3
Merge pull request #523 from JeremyGuinn/empty_message_body_response
Add helpers for creating empty message-body responses
2021-12-01 15:44:00 +02:00
Jeremy Guinn
ecb8ec3c1e Add helpers for creating empty message-body responses 2021-11-26 15:04:24 -07:00
Julian Ste
72e7fa973e
Update module-install.cmake 2021-11-26 09:38:47 +01:00
Julian Ste
46e6fcdfc0
Create cpack.cmake 2021-11-26 09:37:46 +01:00
Julian Ste
ac941832d0
Update CMakeLists.txt 2021-11-26 09:36:52 +01:00
Leonid Stryzhevskyi
349d96114a
Update README.md 2021-11-19 02:43:04 +02:00
lganzzzo
c254b0c60d tcp::client::ConnectionProvider: remove incorrect condition. 2021-11-16 23:56:17 +02:00
Leonid Stryzhevskyi
5e9ae5796f
Merge pull request #505 from NickPak/master
Fix errors
2021-11-16 23:53:11 +02:00