{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/obm-com-br/json-schema/obm-com-br-fund-navlist-envelope-schema.json",
  "title": "FundNAVListEnvelope",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/obm-com-br-openapi.yml#/components/schemas/FundNAVListEnvelope",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/FundNAV"
      },
      "type": "array",
      "title": "Data",
      "description": "Dados da resposta. Os exemplos são ilustrativos e não representam cotações atuais."
    },
    "reference_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference Date",
      "description": "Data do dado no formato AAAA-MM-DD (RFC 3339); null quando não há data verificável. Nunca é a data da chamada."
    },
    "source": {
      "$ref": "#/$defs/Source"
    },
    "meta": {
      "anyOf": [
        {
          "$ref": "#/$defs/Pagination"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "data",
    "reference_date",
    "source"
  ],
  "$defs": {
    "FundNAV": {
      "properties": {
        "date": {
          "type": "string",
          "format": "date",
          "title": "Date",
          "description": "Data no formato AAAA-MM-DD (RFC 3339)."
        },
        "nav_per_share": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nav Per Share"
        },
        "net_worth": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Net Worth"
        },
        "shareholder_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Shareholder Count"
        },
        "daily_deposits": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Daily Deposits"
        },
        "redemptions": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Redemptions"
        }
      },
      "type": "object",
      "required": [
        "date",
        "nav_per_share",
        "net_worth",
        "shareholder_count",
        "daily_deposits",
        "redemptions"
      ],
      "title": "FundNAV"
    },
    "Pagination": {
      "properties": {
        "page": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Page"
        },
        "page_size": {
          "type": "integer",
          "maximum": 200.0,
          "minimum": 1.0,
          "title": "Page Size"
        },
        "total": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Total"
        }
      },
      "type": "object",
      "required": [
        "page",
        "page_size",
        "total"
      ],
      "title": "Pagination"
    },
    "Source": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "url": {
          "type": "string",
          "title": "Url"
        }
      },
      "type": "object",
      "required": [
        "code",
        "name",
        "url"
      ],
      "title": "Source"
    }
  }
}