File tree 5 files changed +19
-13
lines changed
libraries/easy/samples/3_json
5 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 45
45
"userver_target_generate_chaotic" : {
46
46
"pargs" : 1 ,
47
47
"kwargs" : {
48
- "ARGS" : {
49
- "kwargs" : {
50
- "-n" : 1 ,
51
- }
52
- },
48
+ "ARGS" : "*" ,
53
49
"FORMAT" : "*" ,
54
50
"OUTPUT_DIR" : "*" ,
55
51
"SCHEMAS" : "*" ,
Original file line number Diff line number Diff line change @@ -6,9 +6,14 @@ include(ChaoticGen)
6
6
file (GLOB_RECURSE SCHEMAS "${CMAKE_CURRENT_SOURCE_DIR} /schemas/*.yaml" )
7
7
userver_target_generate_chaotic(
8
8
${PROJECT_NAME} -chgen
9
- ARGS -n "/components/schemas/([^/]*)/=ns::{0}"
10
- -I "${CMAKE_CURRENT_SOURCE_DIR} /include" -I "${CMAKE_CURRENT_SOURCE_DIR} /../include" --parse-extra-formats
11
- --generate-serializers
9
+ ARGS -n
10
+ "/components/schemas/([^/]*)/=ns::{0}"
11
+ -I
12
+ "${CMAKE_CURRENT_SOURCE_DIR} /include"
13
+ -I
14
+ "${CMAKE_CURRENT_SOURCE_DIR} /../include"
15
+ --parse-extra-formats
16
+ --generate-serializers
12
17
FORMAT ON
13
18
OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR} /src"
14
19
SCHEMAS ${SCHEMAS}
Original file line number Diff line number Diff line change @@ -12,9 +12,14 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/i
12
12
file (GLOB_RECURSE SCHEMAS ${CMAKE_CURRENT_SOURCE_DIR} /schemas/*.yaml)
13
13
userver_target_generate_chaotic(
14
14
${PROJECT_NAME} -chgen
15
- ARGS -n "/definitions/([^/]*)/=ns::{0}"
16
- -I ${CMAKE_CURRENT_SOURCE_DIR} /include -I ${CMAKE_CURRENT_SOURCE_DIR} /../include --parse-extra-formats
17
- --generate-serializers
15
+ ARGS -n
16
+ "/definitions/([^/]*)/=ns::{0}"
17
+ -I
18
+ ${CMAKE_CURRENT_SOURCE_DIR} /include
19
+ -I
20
+ ${CMAKE_CURRENT_SOURCE_DIR} /../include
21
+ --parse-extra-formats
22
+ --generate-serializers
18
23
OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR} /src
19
24
SCHEMAS ${SCHEMAS}
20
25
RELATIVE_TO ${CMAKE_CURRENT_SOURCE_DIR}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ userver_target_generate_chaotic(
12
12
${PROJECT_NAME} -chgen
13
13
ARGS # Map '/components/schemas/*' JSONSchema types to C++ types in 'schemas' namespace
14
14
-n "/components/schemas/([^/]*)/=schemas::{0}" # Generate serializers for responses
15
- --generate-serializers
15
+ --generate-serializers
16
16
OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR} /src
17
17
SCHEMAS ${SCHEMAS}
18
18
RELATIVE_TO ${CMAKE_CURRENT_SOURCE_DIR}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ userver_target_generate_chaotic(
22
22
${PROJECT_NAME} -chgen
23
23
ARGS # Map '/components/schemas/*' JSONSchema types to C++ types in 'samples::hello' namespace
24
24
-n "/components/schemas/([^/]*)/=samples::hello::{0}" # Generate serializers for responses
25
- --generate-serializers
25
+ --generate-serializers
26
26
OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR} /src
27
27
SCHEMAS ${SCHEMAS}
28
28
RELATIVE_TO ${CMAKE_CURRENT_SOURCE_DIR}
You can’t perform that action at this time.
0 commit comments