Skip to content

Commit 9b6b3c6

Browse files
committed
Merge branch 'main' into update-spec-062023
2 parents 8555378 + 96f2804 commit 9b6b3c6

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

tools/download-schemas.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
* limitations under the License.
1515
*/
1616
import $RefParser from '@apidevtools/json-schema-ref-parser';
17-
import { promises as fsPromises } from 'fs';
17+
import {promises as fsPromises} from 'fs';
1818
import * as path from 'path';
1919
import { URL } from 'url';
2020
import { schemaDir, reset, schemaUrl } from './utils';
2121

22+
2223
const { writeFile, mkdir } = fsPromises;
2324

2425
/**
@@ -52,4 +53,5 @@ const download = async (schemaUrl: URL, destDir: string): Promise<void> => {
5253
}
5354
};
5455

56+
5557
download(schemaUrl, schemaDir).then(console.log.bind(console)).catch(console.error.bind(console));

tools/generate-merged_json.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ import $RefParser from '@apidevtools/json-schema-ref-parser';
1717
import { promises as fsPromises } from 'fs';
1818
import * as path from 'path';
1919
import { URL } from 'url';
20-
import { schemaDir, mergeDefinitions, mergeSchemas, schemaUrl } from './utils';
20+
import {schemaDir, mergeDefinitions, mergeSchemas, schemaUrl} from './utils';
21+
22+
const { writeFile} = fsPromises;
2123

22-
const { writeFile } = fsPromises;
2324

2425
/**
2526
* Generate a merged schema `__merged.json` from schemas in schemas directory

tools/utils.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ import { promises as fsPromises } from 'fs';
1919
import * as path from 'path';
2020
import rimraf from 'rimraf';
2121
import { readMeDisclaimer } from './consts';
22+
<<<<<<< HEAD
2223
import { URL } from 'url';
2324
import yargs from 'yargs';
2425
import { schemaVersion } from '../package.json';
26+
=======
27+
import {URL} from "url";
28+
import yargs from "yargs";
29+
import {schemaVersion} from "../package.json";
30+
>>>>>>> main
2531

2632
const { writeFile, mkdir } = fsPromises;
2733

@@ -185,5 +191,7 @@ export const schemaDir = path.resolve(process.cwd(), 'src/lib/schema');
185191
/** The URL to download the schema from */
186192
export const schemaUrl: URL = new URL(
187193
(yargs(process.argv.slice(2)).argv.url as string) ||
188-
`https://raw.githubusercontent.com/serverlessworkflow/specification/${schemaVersion}.x/schema/workflow.json`
194+
`https://raw.githubusercontent.com/serverlessworkflow/specification/${schemaVersion}.x/schema/workflow.json`
189195
);
196+
197+

0 commit comments

Comments
 (0)