{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stockdrifts-io/json-schema/stockdrifts-io-jpshareholding-report-schema.json",
  "title": "JPShareholdingReport",
  "description": "One JP large-shareholding report (5%+ ownership filing).",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stockdrifts-io-openapi.json#/components/schemas/JPShareholdingReport",
  "properties": {
    "doc_id": {
      "type": "string",
      "title": "Doc Id"
    },
    "filing_date": {
      "type": "string",
      "title": "Filing Date"
    },
    "obligation_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Obligation Date"
    },
    "base_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Base Date"
    },
    "filer_name": {
      "type": "string",
      "title": "Filer Name"
    },
    "filer_name_en": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filer Name En"
    },
    "filer_edinet_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filer Edinet Code"
    },
    "issuer_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issuer Name"
    },
    "issuer_name_en": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issuer Name En"
    },
    "stock_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stock Code"
    },
    "shares_held": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Shares Held"
    },
    "holding_ratio": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Holding Ratio"
    },
    "prev_holding_ratio": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prev Holding Ratio"
    },
    "ratio_change": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ratio Change"
    },
    "total_outstanding": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Outstanding"
    },
    "purpose": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Purpose"
    },
    "purpose_category": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "activist",
            "engagement",
            "passive",
            "strategic",
            "corporate",
            "other",
            "unknown"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Purpose Category"
    },
    "acquisition_amount_jpy": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Acquisition Amount Jpy"
    },
    "acquisition_method": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "open_market",
            "negotiated",
            "acquisition",
            "subscription",
            "private",
            "block_purchase",
            "unknown"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Acquisition Method"
    },
    "filing_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filing Type"
    },
    "transaction_type": {
      "type": "string",
      "enum": [
        "BUY",
        "SELL",
        "INITIAL",
        "HOLD",
        "CHANGE",
        "CORRECTION",
        "UNKNOWN"
      ],
      "title": "Transaction Type"
    },
    "individual_or_corp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Individual Or Corp"
    },
    "representative": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Representative"
    },
    "business_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Business Description"
    },
    "exchange_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exchange Name"
    },
    "entity_group": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entity Group"
    },
    "holder_count": {
      "type": "integer",
      "title": "Holder Count",
      "default": 0
    },
    "is_special_exception": {
      "type": "boolean",
      "title": "Is Special Exception",
      "default": false
    },
    "is_correction": {
      "type": "boolean",
      "title": "Is Correction",
      "default": false
    },
    "corrects_doc_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Corrects Doc Id"
    },
    "price_at_filing": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price At Filing"
    },
    "price_current": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Current"
    },
    "value_jpy": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Value Jpy"
    },
    "inflow_value_jpy": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Inflow Value Jpy"
    },
    "return_since_filing": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Return Since Filing"
    },
    "is_joint_filing": {
      "type": "boolean",
      "title": "Is Joint Filing",
      "default": false
    },
    "aggregate_holding_ratio": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Aggregate Holding Ratio"
    },
    "aggregate_prev_holding_ratio": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Aggregate Prev Holding Ratio"
    },
    "investor": {
      "anyOf": [
        {
          "$ref": "#/$defs/JPInvestorRegistry"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "doc_id",
    "filing_date",
    "filer_name",
    "transaction_type"
  ],
  "$defs": {
    "JPInvestorRegistry": {
      "properties": {
        "star_rating": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Star Rating"
        }
      },
      "type": "object",
      "title": "JPInvestorRegistry",
      "description": "Embedded JP investor star rating."
    }
  }
}