{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cnpj-ai/json-schema/cnpj-ai-resposta-pagina-fonte-participacao-pncp-schema.json",
  "title": "Resposta[PaginaFonte[ParticipacaoPNCP]]",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cnpj-ai-v2-openapi.yml#/components/schemas/Resposta_PaginaFonte_ParticipacaoPNCP__",
  "properties": {
    "dados": {
      "$ref": "#/$defs/PaginaFonte_ParticipacaoPNCP_"
    },
    "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"
    },
    "PaginaFonte_ParticipacaoPNCP_": {
      "properties": {
        "itens": {
          "items": {
            "$ref": "#/$defs/ParticipacaoPNCP"
          },
          "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"
        },
        "fonte": {
          "type": "string",
          "title": "Fonte"
        },
        "status": {
          "type": "string",
          "enum": [
            "encontrado",
            "sem_ocorrencia",
            "indisponivel",
            "erro"
          ],
          "title": "Status"
        },
        "escopo": {
          "type": "string",
          "enum": [
            "empresa",
            "estabelecimento"
          ],
          "title": "Escopo"
        },
        "documento": {
          "type": "string",
          "title": "Documento"
        },
        "competencia": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Competencia"
        },
        "carregada_em": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Carregada Em"
        },
        "cobertura_inicio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cobertura Inicio"
        },
        "desatualizada": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Desatualizada"
        },
        "proveniencia": {
          "$ref": "#/$defs/Proveniencia"
        }
      },
      "type": "object",
      "required": [
        "itens",
        "total",
        "fonte",
        "status",
        "escopo",
        "documento",
        "competencia",
        "carregada_em",
        "desatualizada",
        "proveniencia"
      ],
      "title": "PaginaFonte[ParticipacaoPNCP]"
    },
    "ParticipacaoPNCP": {
      "properties": {
        "numero_controle_pncp": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Numero Controle Pncp"
        },
        "cnpj_orgao": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cnpj Orgao"
        },
        "cnpj_basico_orgao": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cnpj Basico Orgao"
        },
        "ano_contrato": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ano Contrato"
        },
        "sequencial_contrato": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sequencial Contrato"
        },
        "numero_controle_compra": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Numero Controle Compra"
        },
        "numero_controle_ata": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Numero Controle Ata"
        },
        "numero_contrato_empenho": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Numero Contrato Empenho"
        },
        "processo": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Processo"
        },
        "tipo_contrato_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tipo Contrato Id"
        },
        "tipo_contrato_nome": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tipo Contrato Nome"
        },
        "categoria_processo_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Categoria Processo Id"
        },
        "categoria_processo_nome": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Categoria Processo Nome"
        },
        "nome_orgao": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nome Orgao"
        },
        "poder_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Poder Id"
        },
        "esfera_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Esfera Id"
        },
        "codigo_unidade": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Codigo Unidade"
        },
        "nome_unidade": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nome Unidade"
        },
        "uf": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Uf"
        },
        "municipio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Municipio"
        },
        "codigo_ibge": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Codigo Ibge"
        },
        "objeto": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Objeto"
        },
        "valor_inicial": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valor Inicial"
        },
        "valor_global": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valor Global"
        },
        "valor_acumulado": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valor Acumulado"
        },
        "numero_parcelas": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Numero Parcelas"
        },
        "receita": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Receita"
        },
        "data_assinatura": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Assinatura",
          "description": "Data preservada na representação armazenada pela fonte; consulte o catálogo de fontes."
        },
        "data_vigencia_inicio": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Vigencia Inicio",
          "description": "Data preservada na representação armazenada pela fonte; consulte o catálogo de fontes."
        },
        "data_vigencia_fim": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Vigencia Fim",
          "description": "Data preservada na representação armazenada pela fonte; consulte o catálogo de fontes."
        },
        "data_publicacao": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Publicacao",
          "description": "Data preservada na representação armazenada pela fonte; consulte o catálogo de fontes."
        },
        "data_atualizacao": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Atualizacao",
          "description": "Data preservada na representação armazenada pela fonte; consulte o catálogo de fontes."
        },
        "data_atualizacao_global": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Data Atualizacao Global",
          "description": "Data preservada na representação armazenada pela fonte; consulte o catálogo de fontes."
        },
        "usuario_nome": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Usuario Nome"
        },
        "url_pncp": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url Pncp"
        },
        "cnpj_basico": {
          "type": "string",
          "title": "Cnpj Basico"
        },
        "cnpj_fonte": {
          "type": "string",
          "title": "Cnpj Fonte"
        },
        "nome_participante": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Nome Participante"
        },
        "papel": {
          "type": "string",
          "title": "Papel"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "numero_controle_pncp",
        "cnpj_orgao",
        "cnpj_basico_orgao",
        "ano_contrato",
        "sequencial_contrato",
        "numero_controle_compra",
        "numero_controle_ata",
        "numero_contrato_empenho",
        "processo",
        "tipo_contrato_id",
        "tipo_contrato_nome",
        "categoria_processo_id",
        "categoria_processo_nome",
        "nome_orgao",
        "poder_id",
        "esfera_id",
        "codigo_unidade",
        "nome_unidade",
        "uf",
        "municipio",
        "codigo_ibge",
        "objeto",
        "valor_inicial",
        "valor_global",
        "valor_acumulado",
        "numero_parcelas",
        "receita",
        "data_assinatura",
        "data_vigencia_inicio",
        "data_vigencia_fim",
        "data_publicacao",
        "data_atualizacao",
        "data_atualizacao_global",
        "usuario_nome",
        "url_pncp",
        "cnpj_basico",
        "cnpj_fonte",
        "nome_participante",
        "papel"
      ],
      "title": "ParticipacaoPNCP"
    },
    "Proveniencia": {
      "properties": {
        "fonte": {
          "type": "string",
          "title": "Fonte"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "nota": {
          "type": "string",
          "title": "Nota"
        },
        "licenca": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Licenca"
        },
        "licenca_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Licenca Url"
        },
        "metodologia_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metodologia Url"
        }
      },
      "type": "object",
      "required": [
        "fonte",
        "url",
        "nota"
      ],
      "title": "Proveniencia"
    }
  }
}