Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discriminate Tx Type on level of array #19

Open
myrho opened this issue May 20, 2022 · 0 comments
Open

Discriminate Tx Type on level of array #19

myrho opened this issue May 20, 2022 · 0 comments

Comments

@myrho
Copy link
Contributor

myrho commented May 20, 2022

There are two types of tx: tx_account and tx_utxo/address_tx_utxo. They are discriminated for each array item. However, they could be already discriminated one level higher, eg:

    address_txs:
      type: object
      required:
        - address_txs
      properties:
        next_page: 
          $ref: '#/components/schemas/next_page'
        oneOf:
        - $ref: '#/components/schemas/address_txs_utxo'
        - $ref: '#/components/schemas/txs_account'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant