{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cnpj-ai/json-schema/cnpj-ai-resposta-pagina-socio-schema.json",
  "title": "Resposta[Pagina[Socio]]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cnpj-ai-empresas-api-openapi.yml#/components/schemas/Resposta_Pagina_Socio__",
  "properties": {
    "dados": {
      "$ref": "#/$defs/Pagina_Socio_"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "type": "object",
  "required": [
    "dados",
    "meta"
  ],
  "$defs": {
    "Meta": {
      "properties": {
        "versao": {
          "type": "string",
          "const": "v2",
          "title": "Versao",
          "default": "v2"
        },
        "release": {
          "type": "string",
          "const": "2.0.0",
          "title": "Release",
          "default": "2.0.0"
        },
        "recurso": {
          "type": "string",
          "enum": [
            "empresas",
            "estabelecimentos"
          ],
          "title": "Recurso"
        },
        "documento": {
          "type": "string",
          "title": "Documento"
        },
        "competencia_receita": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Competencia Receita"
        },
        "fotografia": {
          "type": "string",
          "title": "Fotografia"
        },
        "requisicao_id": {
          "type": "string",
          "format": "uuid",
          "title": "Requisicao Id"
        },
        "disponibilidade": {
          "type": "string",
          "enum": [
            "completa",
            "parcial"
          ],
          "title": "Disponibilidade",
          "default": "completa"
        }
      },
      "type": "object",
      "required": [
        "recurso",
        "documento",
        "competencia_receita",
        "fotografia",
        "requisicao_id"
      ],
      "title": "Meta"
    },
    "Pagina_Socio_": {
      "properties": {
        "itens": {
          "items": {
            "$ref": "#/$defs/Socio"
          },
          "type": "array",
          "title": "Itens"
        },
        "total": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total"
        },
        "proximo_cursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Proximo Cursor"
        },
        "proxima_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Proxima Url"
        }
      },
      "type": "object",
      "required": [
        "itens",
        "total"
      ],
      "title": "Pagina[Socio]"
    },
    "Socio": {
      "properties": {
        "cnpj_basico": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cnpj Basico"
        },
        "identificador_socio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Identificador Socio"
        },
        "nome_socio_razao_social": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nome Socio Razao Social"
        },
        "cpf_cnpj_socio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cpf Cnpj Socio"
        },
        "qualificacao_socio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Qualificacao Socio"
        },
        "data_entrada_sociedade": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Entrada Sociedade"
        },
        "pais": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pais"
        },
        "representante_legal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Representante Legal"
        },
        "nome_representante": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nome Representante"
        },
        "qualificacao_representante_legal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Qualificacao Representante Legal"
        },
        "faixa_etaria": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Faixa Etaria"
        },
        "descricoes": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "title": "Descricoes",
          "description": "Descrições oficiais dos códigos presentes neste registro."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "cnpj_basico",
        "identificador_socio",
        "nome_socio_razao_social",
        "cpf_cnpj_socio",
        "qualificacao_socio",
        "data_entrada_sociedade",
        "pais",
        "representante_legal",
        "nome_representante",
        "qualificacao_representante_legal",
        "faixa_etaria"
      ],
      "title": "Socio"
    }
  }
}