Skip to content

Commit

Permalink
Harvest normalization failure: fixing the schemas (#5701)
Browse files Browse the repository at this point in the history
* commit fixes

* change

* change

* fixing crit typo

* fixing type

* remove primary key inherited by default

* fixing primary keys

* reportbase primary_key
  • Loading branch information
vovavovavovavova committed Aug 31, 2021
1 parent 3b8f6e8 commit 90e909f
Show file tree
Hide file tree
Showing 20 changed files with 188 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@
"format": "date-time"
},
"recipients": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"properties": {
"email": {
"type": ["string", "null"]
},
"name": {
"type": ["string", "null"]
}
},
"type": "object"
}
},
"event_type": {
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"type": ["null", "boolean"]
},
"budget": {
"type": ["null", "string"]
"type": ["null", "number"]
},
"created_at": {
"type": ["null", "string"],
Expand All @@ -94,6 +94,9 @@
},
"hourly_rate": {
"type": ["null", "number"]
},
"use_default_rates": {
"type": ["null", "boolean"]
}
}
},
Expand Down Expand Up @@ -121,7 +124,7 @@
"type": ["null", "string"]
},
"unit_price": {
"type": ["null", "string"]
"type": ["null", "number"]
},
"unit_name": {
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"type": ["null", "string"]
},
"total_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"billable_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"currency": {
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"type": ["null", "string"]
},
"total_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"billable_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"currency": {
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"type": ["null", "boolean"]
},
"total_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"billable_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"currency": {
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@
"type": ["null", "string"]
},
"recipients": {
"type": ["null", "object"],
"properties": {
"name": {
"type": ["null", "string"]
"type": ["null", "array"],
"items": {
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
},
"email": {
"type": ["null", "string"]
}
"type": "object"
}
},
"subject": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": ["null", "integer"]
},
"amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"paid_at": {
"type": ["null", "string"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
"type": ["null", "number"]
},
"tax": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"tax_amount": {
"type": ["null", "number"]
},
"tax2": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"tax2_amount": {
"type": ["null", "number"]
},
"discount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"discount_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"subject": {
"type": ["null", "string"]
Expand Down Expand Up @@ -94,7 +94,15 @@
"type": ["null", "string"]
},
"client": {
"type": ["null", "string"]
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"name": {
"type": ["null", "string"]
}
}
},
"estimate": {
"type": ["null", "string"]
Expand All @@ -103,39 +111,61 @@
"type": ["null", "string"]
},
"creator": {
"type": ["null", "string"]
},
"line_items": {
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"kind": {
"type": ["null", "string"]
},
"description": {
"type": ["null", "string"]
},
"quantity": {
"type": ["null", "integer"]
},
"unit_price": {
"type": ["null", "integer"]
},
"amount": {
"type": ["null", "integer"]
},
"taxed": {
"type": ["null", "boolean"]
},
"taxed2": {
"type": ["null", "boolean"]
},
"project": {
"name": {
"type": ["null", "string"]
}
}
},
"line_items": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"id": {
"type": ["null", "integer"]
},
"kind": {
"type": ["null", "string"]
},
"description": {
"type": ["null", "string"]
},
"quantity": {
"type": ["null", "number"]
},
"unit_price": {
"type": ["null", "number"]
},
"amount": {
"type": ["null", "number"]
},
"taxed": {
"type": ["null", "boolean"]
},
"taxed2": {
"type": ["null", "boolean"]
},
"project": {
"type": ["null", "object"],
"properties": {
"code": {
"type": ["null", "string"]
},
"id": {
"type": ["integer", "null"]
},
"name": {
"type": ["null", "string"]
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": ["null", "boolean"]
},
"budget": {
"type": ["null", "string"]
"type": ["null", "number"]
},
"created_at": {
"type": ["null", "string"],
Expand Down Expand Up @@ -50,11 +50,51 @@
},
"name": {
"type": ["null", "string"]
},
"currency": {
"type": ["null", "string"]
}
}
},
"task_assignments": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"properties": {
"billable": {
"type": ["null", "boolean"]
},
"budget": {
"type": ["null", "number"]
},
"created_at": {
"type": ["string", "null"]
},
"hourly_rate": {
"type": ["null", "number"]
},
"id": {
"type": ["null", "integer"]
},
"is_active": {
"type": ["null", "boolean"]
},
"task": {
"properties": {
"id": {
"type": ["null", "integer"]
},
"name": {
"type": ["null", "string"]
}
},
"type": ["object", "null"]
},
"updated_at": {
"type": ["null", "string"]
}
},
"type": "object"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"type": ["null", "boolean"]
},
"budget": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"budget_spent": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"budget_remaining": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"from": {
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
},
"cost_budget": {
"type": ["null", "string"]
"type": ["null", "number"]
},
"cost_budget_include_expenses": {
"type": ["null", "boolean"]
Expand All @@ -87,7 +87,7 @@
"type": ["null", "number"]
},
"fee": {
"type": ["null", "string"]
"type": ["null", "number"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"format": "date-time"
},
"user_ids": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": "integer"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": ["null", "string"]
},
"billable_amount": {
"type": ["null", "integer"]
"type": ["null", "number"]
},
"from": {
"type": ["null", "string"]
Expand Down
Loading

0 comments on commit 90e909f

Please sign in to comment.