Fix bugs in schemas

This commit is contained in:
Leonid Logvinov
2017-06-09 19:49:35 +02:00
parent b6abfe4990
commit 727f6ad230
4 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ export const orderCancellationRequestsSchema = {
items: {
properties: {
order: {$ref: '/orderSchema'},
takerTokenCancelAmount: {type: '/numberSchema'},
takerTokenCancelAmount: {$ref: '/numberSchema'},
},
required: ['order', 'takerTokenCancelAmount'],
type: 'object',

View File

@@ -4,7 +4,7 @@ export const orderFillOrKillRequestsSchema = {
items: {
properties: {
signedOrder: {$ref: '/signedOrderSchema'},
fillTakerAmount: {type: '/numberSchema'},
fillTakerAmount: {$ref: '/numberSchema'},
},
required: ['signedOrder', 'fillTakerAmount'],
type: 'object',

View File

@@ -4,7 +4,7 @@ export const orderFillRequestsSchema = {
items: {
properties: {
signedOrder: {$ref: '/signedOrderSchema'},
takerTokenFillAmount: {type: '/numberSchema'},
takerTokenFillAmount: {$ref: '/numberSchema'},
},
required: ['signedOrder', 'takerTokenFillAmount'],
type: 'object',

View File

@@ -192,7 +192,7 @@ describe('Schema', () => {
const orderFillOrKillRequests = [
{
signedOrder,
fillTakerAmount: 5,
fillTakerAmount: '5',
},
];
it('should validate valid order fill or kill requests', () => {
@@ -217,7 +217,7 @@ describe('Schema', () => {
const orderCancellationRequests = [
{
order,
takerTokenCancelAmount: 5,
takerTokenCancelAmount: '5',
},
];
it('should validate valid order cancellation requests', () => {
@@ -242,7 +242,7 @@ describe('Schema', () => {
const orderFillRequests = [
{
signedOrder,
takerTokenFillAmount: 5,
takerTokenFillAmount: '5',
},
];
it('should validate valid order fill requests', () => {