Add schema assertions on public methods of @0xproject/sol-compiler
This commit is contained in:
26
packages/sol-compiler/src/schemas/compiler_options_schema.ts
Normal file
26
packages/sol-compiler/src/schemas/compiler_options_schema.ts
Normal file
@@ -0,0 +1,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,
|
||||
};
|
Reference in New Issue
Block a user