Skip to content

Commit 480a817

Browse files
committed
1.10.0 release
1 parent f900bf4 commit 480a817

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

‎README.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SYNOPSIS
111111
sonata-blending-tool-cli blend
112112
[ {-b | --blending-schema} <specifications to be blend (integrate) in>... ]
113113
[ {-d | --spec-root-dir} <root directory for specifications to be blended> ]
114+
[ {-discover | --auto-discover} ]
114115
[ {-e | -encoding} <files encoding> ]
115116
[ {-f | --force-override} ] [ {-i | --input-spec} <spec file> ]
116117
[ {-m | --model-name} <model to be augmented> ]
@@ -127,14 +128,16 @@ OPTIONS
127128
This option is part of the group 'allOrSelective' from which only
128129
one option may be specified
129130

130-
131131
-d <root directory for specifications to be blended>, --spec-root-dir
132132
<root directory for specifications to be blended>
133133
root directory for specifications.
134134

135135
This option may occur a maximum of 1 times
136136

137-
137+
-discover, --auto-discover
138+
Try to use a parent type name from x-mef-target extension in
139+
schema. If not defined the fallback is to take 'model-name'
140+
138141
-e <files encoding>, -encoding <files encoding>
139142
encoding used to read API and product definitions. By default
140143
system encoding is used
@@ -210,6 +213,14 @@ Assumption is that this command is run from root of the Legato SDK directory and
210213
-b carrierEthernetSubscriberUni.yaml
211214
```
212215
216+
### Additional features
217+
218+
219+
#### Auto-discover mode
220+
If a schema to blend defines `x-mef-target` extension it can be used as a target class name for given type.
221+
To enable this feature please use `-discover` flag. In auto-discover mode if `x-mef-target` is not defined for the schema
222+
the `model-name` will be used as a fallback.
223+
213224
## Tool `merge` command synopsis
214225
215226
Merge command generates an OAS 3 definition that is a minimal OAS file including `components/schemas` only
@@ -220,6 +231,7 @@ SYNOPSIS
220231
sonata-blending-tool-cli merge
221232
[ {-b | --blending-schema} <specifications to be blend (integrate) in>... ]
222233
[ {-d | --spec-root-dir} <root directory for specifications> ]
234+
[ {-discover | --auto-discover} ]
223235
[ {-f | --force-override} ]
224236
[ {-m | --model-name} <model to be augmented> ]
225237
{-o | --output} <Output file name> [ --sorted ]
@@ -239,7 +251,10 @@ OPTIONS
239251
240252
This option may occur a maximum of 1 times
241253
242-
254+
-discover, --auto-discover
255+
Try to use a parent type name from x-mef-target extension in
256+
schema. If not defined the fallback is to take 'model-name'
257+
243258
-f, --force-override
244259
245260

‎pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<groupId>com.amartus.sonata</groupId>
2626
<artifactId>blender</artifactId>
2727
<description>SonataBlendingTool</description>
28-
<version>1.10.0-SNAPSHOT</version>
28+
<version>1.10.0</version>
2929
<properties>
3030
<openapi.generator.version>6.2.0</openapi.generator.version>
3131
<jackson.version>2.14.0</jackson.version>

0 commit comments

Comments
 (0)