Skip to content

Commit

Permalink
Merge pull request #67 from coinbase/patrick/optional-operator
Browse files Browse the repository at this point in the history
`SearchTransactionsRequest.Operator` Optional
  • Loading branch information
patrick-ogrady authored Nov 9, 2020
2 parents 222fde3 + 81ad464 commit 6b1c0d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions api.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi":"3.0.2",
"info": {
"version":"1.4.7",
"version":"1.4.8",
"title":"Rosetta",
"description":"Build Once. Integrate Your Blockchain Everywhere.",
"license": {
Expand Down Expand Up @@ -1533,7 +1533,7 @@
]
},
"Operator": {
"description":"Operator is used by query-related endpoints to determine how to apply conditions.",
"description":"Operator is used by query-related endpoints to determine how to apply conditions. If this field is not populated, the default `and` value will be used.",
"type":"string",
"enum": [
"or",
Expand Down Expand Up @@ -2278,8 +2278,7 @@
"description":"SearchTransactionsRequest is used to search for transactions matching a set of provided conditions in canonical blocks.",
"type":"object",
"required": [
"network_identifier",
"operator"
"network_identifier"
],
"properties": {
"network_identifier": {
Expand Down
3 changes: 1 addition & 2 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

openapi: 3.0.2
info:
version: 1.4.7
version: 1.4.8
title: Rosetta
description: |
Build Once. Integrate Your Blockchain Everywhere.
Expand Down Expand Up @@ -1546,7 +1546,6 @@ components:
type: object
required:
- network_identifier
- operator
properties:
network_identifier:
$ref: '#/components/schemas/NetworkIdentifier'
Expand Down
3 changes: 3 additions & 0 deletions models/Operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
description: |
Operator is used by query-related endpoints
to determine how to apply conditions.
If this field is not populated, the default
`and` value will be used.
type: string
enum:
- or
Expand Down

0 comments on commit 6b1c0d3

Please sign in to comment.