@diplodoc/cli-tests 0.0.0-rc-extract-openapi-test-19462171581 → 0.0.0-rc-extract-openapi-test-19464963925
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -963,13 +963,13 @@ paths:
|
|
|
963
963
|
/test:
|
|
964
964
|
get:
|
|
965
965
|
tags:
|
|
966
|
-
-
|
|
967
|
-
summary: '%%%
|
|
968
|
-
description: '%%%
|
|
966
|
+
- '%%%2%%%'
|
|
967
|
+
summary: '%%%3%%%'
|
|
968
|
+
description: '%%%4%%%'
|
|
969
969
|
operationId: getWithPayloadResponse
|
|
970
970
|
responses:
|
|
971
971
|
'200':
|
|
972
|
-
description: '%%%
|
|
972
|
+
description: '%%%5%%%'
|
|
973
973
|
content:
|
|
974
974
|
application/json:
|
|
975
975
|
schema:
|
|
@@ -982,10 +982,10 @@ components:
|
|
|
982
982
|
A:
|
|
983
983
|
type: string
|
|
984
984
|
description: |
|
|
985
|
-
%%%
|
|
986
|
-
- %%%6%%%
|
|
985
|
+
%%%6%%%
|
|
987
986
|
- %%%7%%%
|
|
988
987
|
- %%%8%%%
|
|
988
|
+
- %%%9%%%
|
|
989
989
|
RecurceMiddle:
|
|
990
990
|
type: object
|
|
991
991
|
properties:
|
|
@@ -1013,24 +1013,27 @@ exports[`Translate command > extract openapi spec files with custom openapi sche
|
|
|
1013
1013
|
<source xml:space="preserve">Generated server url</source>
|
|
1014
1014
|
</trans-unit>
|
|
1015
1015
|
<trans-unit id="2">
|
|
1016
|
-
<source xml:space="preserve">
|
|
1016
|
+
<source xml:space="preserve">test-controller</source>
|
|
1017
1017
|
</trans-unit>
|
|
1018
1018
|
<trans-unit id="3">
|
|
1019
|
-
<source xml:space="preserve">
|
|
1019
|
+
<source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
|
|
1020
1020
|
</trans-unit>
|
|
1021
1021
|
<trans-unit id="4">
|
|
1022
|
-
<source xml:space="preserve">
|
|
1022
|
+
<source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
|
|
1023
1023
|
</trans-unit>
|
|
1024
1024
|
<trans-unit id="5">
|
|
1025
|
-
<source xml:space="preserve"
|
|
1025
|
+
<source xml:space="preserve">200!!!!</source>
|
|
1026
1026
|
</trans-unit>
|
|
1027
1027
|
<trans-unit id="6">
|
|
1028
|
-
<source xml:space="preserve"
|
|
1028
|
+
<source xml:space="preserve">Статус загрузки:</source>
|
|
1029
1029
|
</trans-unit>
|
|
1030
1030
|
<trans-unit id="7">
|
|
1031
|
-
<source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-
|
|
1031
|
+
<source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-1"/>UPLOADED<x ctype="code_close" equiv-text="\`" id="x-2"/> — загрузка завершена.</source>
|
|
1032
1032
|
</trans-unit>
|
|
1033
1033
|
<trans-unit id="8">
|
|
1034
|
+
<source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-3"/>IN_PROGRESS<x ctype="code_close" equiv-text="\`" id="x-4"/> — загрузка находится в процессе обработки.</source>
|
|
1035
|
+
</trans-unit>
|
|
1036
|
+
<trans-unit id="9">
|
|
1034
1037
|
<source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-5"/>PROCESSED<x ctype="code_close" equiv-text="\`" id="x-6"/> — загрузка успешно обработана.</source>
|
|
1035
1038
|
</trans-unit>
|
|
1036
1039
|
</body>
|
package/e2e/translation.spec.ts
CHANGED
|
@@ -69,11 +69,13 @@ describe('Translate command', () => {
|
|
|
69
69
|
|
|
70
70
|
generateFilesYamlTestTemplate(
|
|
71
71
|
'extract openapi spec files with custom openapi schema provided',
|
|
72
|
-
'mocks/translation/
|
|
72
|
+
'mocks/translation/openapi',
|
|
73
73
|
{
|
|
74
74
|
subcommand: 'extract',
|
|
75
75
|
source: 'ru-RU',
|
|
76
76
|
target: 'es-ES',
|
|
77
|
+
additionalArgs:
|
|
78
|
+
'--schema mocks/translation/custom-schema/custom-openapi-schema-30.yaml',
|
|
77
79
|
},
|
|
78
80
|
);
|
|
79
81
|
|
package/fixtures/cliAdapter.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.1
|
|
2
|
-
info:
|
|
3
|
-
title: OpenAPI definition
|
|
4
|
-
version: v0
|
|
5
|
-
servers:
|
|
6
|
-
- url: http://localhost:8080
|
|
7
|
-
description: Generated server url
|
|
8
|
-
paths:
|
|
9
|
-
/test:
|
|
10
|
-
get:
|
|
11
|
-
tags:
|
|
12
|
-
- test-controller
|
|
13
|
-
summary: Simple get operation. тест новой верстки 3
|
|
14
|
-
description: Defines a simple get operation with no inputs and a complex
|
|
15
|
-
operationId: getWithPayloadResponse
|
|
16
|
-
responses:
|
|
17
|
-
"200":
|
|
18
|
-
description: 200!!!!
|
|
19
|
-
content:
|
|
20
|
-
application/json:
|
|
21
|
-
schema:
|
|
22
|
-
$ref: '#/components/schemas/RecurceTop'
|
|
23
|
-
components:
|
|
24
|
-
schemas:
|
|
25
|
-
RecurceTop:
|
|
26
|
-
type: object
|
|
27
|
-
properties:
|
|
28
|
-
A:
|
|
29
|
-
type: string
|
|
30
|
-
description: |
|
|
31
|
-
Статус загрузки:
|
|
32
|
-
- `UPLOADED` — загрузка завершена.
|
|
33
|
-
- `IN_PROGRESS` — загрузка находится в процессе обработки.
|
|
34
|
-
- `PROCESSED` — загрузка успешно обработана.
|
|
35
|
-
# $ref: '#/components/schemas/RecurceMiddle'
|
|
36
|
-
RecurceMiddle:
|
|
37
|
-
type: object
|
|
38
|
-
properties:
|
|
39
|
-
B:
|
|
40
|
-
type: array
|
|
41
|
-
items:
|
|
42
|
-
$ref: '#/components/schemas/RecurceTop'
|