Skip to content

Commit 01c4066

Browse files
committed
rename files to .schema.json
1 parent f4129b9 commit 01c4066

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

packages/json_schemas/scripts/build-schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
import { writeFileSync } from 'node:fs';
55

6-
import { actorSchema } from '../src/actor';
6+
import { actorSchema } from '../src/actor.schema';
77

88
const schemasToBuild = [
9-
{ schema: actorSchema, filename: 'schemas/actor.json' },
9+
{ schema: actorSchema, filename: 'schemas/actor.schema.json' },
1010
];
1111

1212
for (const { schema, filename } of schemasToBuild) {

packages/json_schemas/src/actor.ts renamed to packages/json_schemas/src/actor.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ACTOR_LIMITS } from '@apify/consts';
22

3-
// NOTE: When updating actor.json schema, always update this file not the schemas/actor.json file directly.
4-
// The schemas/actor.json file is generated from this file during the build step.
3+
// NOTE: When updating actor schema, always update this file not the schemas/actor.schema.json file directly.
4+
// The schemas/actor.schema.json file is generated from this file during the build step.
55

66
export const actorSchema = {
77
$id: 'actor.json',

packages/json_schemas/src/schemas.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import actorSchema from '../schemas/actor.json';
2-
import datasetSchema from '../schemas/dataset.json';
3-
import inputSchema from '../schemas/input.json';
4-
import keyValueStoreSchema from '../schemas/key_value_store.json';
5-
import outputSchema from '../schemas/output.json';
1+
import actorSchema from '../schemas/actor.schema.json';
2+
import datasetSchema from '../schemas/dataset.schema.json';
3+
import inputSchema from '../schemas/input.schema.json';
4+
import keyValueStoreSchema from '../schemas/key_value_store.schema.json';
5+
import outputSchema from '../schemas/output.schema.json';
66

77
export {
88
actorSchema,

0 commit comments

Comments
 (0)