{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-create-legal-entity-input-schema.json",
  "title": "CreateLegalEntityInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-company-settings-api-openapi.yml#/components/schemas/CreateLegalEntityInput",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "functionalCurrency"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "shortName": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 200
    },
    "role": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 200
    },
    "functionalCurrency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    },
    "ownershipPct": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "parentEntityId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    }
  }
}