diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-03 02:57:23 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-03 02:57:23 +0800 |
commit | afc5c2616acfaf59e8ce716bc9329bc06021dc7a (patch) | |
tree | 0377e459e8be957f90107b1d2310ed098e2193c8 /packages/json-schemas/schemas/tx_data_schema.ts | |
parent | f8a252d1427a6dddffa3cdb177ebc6ffd9cb774c (diff) | |
download | dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.tar dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.tar.gz dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.tar.bz2 dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.tar.lz dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.tar.xz dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.tar.zst dexon-sol-tools-afc5c2616acfaf59e8ce716bc9329bc06021dc7a.zip |
Enforce stronger naming convention for json schema ids
Diffstat (limited to 'packages/json-schemas/schemas/tx_data_schema.ts')
-rw-r--r-- | packages/json-schemas/schemas/tx_data_schema.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/json-schemas/schemas/tx_data_schema.ts b/packages/json-schemas/schemas/tx_data_schema.ts index 4274c553f..41a5c708a 100644 --- a/packages/json-schemas/schemas/tx_data_schema.ts +++ b/packages/json-schemas/schemas/tx_data_schema.ts @@ -1,22 +1,22 @@ export const jsNumber = { - id: '/JsNumber', + id: '/jsNumber', type: 'number', minimum: 0, }; export const txDataSchema = { - id: '/TxData', + id: '/txDataSchema', properties: { - from: { $ref: '/Address' }, - to: { $ref: '/Address' }, + from: { $ref: '/addressSchema' }, + to: { $ref: '/addressSchema' }, value: { - oneOf: [{ $ref: '/Number' }, { $ref: '/JsNumber' }], + oneOf: [{ $ref: '/numberSchema' }, { $ref: '/jsNumber' }], }, gas: { - oneOf: [{ $ref: '/Number' }, { $ref: '/JsNumber' }], + oneOf: [{ $ref: '/numberSchema' }, { $ref: '/jsNumber' }], }, gasPrice: { - oneOf: [{ $ref: '/Number' }, { $ref: '/JsNumber' }], + oneOf: [{ $ref: '/numberSchema' }, { $ref: '/jsNumber' }], }, data: { type: 'string', |