aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/schemas/compiler_options_schema.ts
blob: 43a9c0879849b52dc8e05313f42a19125f5d76a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export const compilerOptionsSchema = {
    id: '/CompilerOptions',
    properties: {
        contractsDir: { type: 'string' },
        artifactsDir: { type: 'string' },
        solcVersion: { type: 'string', pattern: '^d+.d+.d+$' },
        compilerSettings: { type: 'object' },
        contracts: {
            oneOf: [
                {
                    type: 'string',
                    pattern: '^\\*$',
                },
                {
                    type: 'array',
                    items: {
                        type: 'string',
                    },
                },
            ],
        },
    },
    type: 'object',
    required: [],
    additionalProperties: false,
};