{
  "openapi": "3.1.0",
  "info": {
    "title": "Electric Drive Challenge Iași: API",
    "version": "1.0.0",
    "summary": "Date publice despre eveniment, ediții, traseu și calculator; înscriere cu confirmare pe email.",
    "description": "GET-urile sunt publice, fără cheie, cu CORS deschis (`Access-Control-Allow-Origin: *`) și cache scurt (cel mult un minut). Câmpurile numerice au unitatea în nume (`consum_kwh_100km`, `cost_total_lei`). Valorile necunoscute sunt `null`. Fiecare set de date are `updated_at`, `source` și `cite_as`. POST-urile nu publică nimic: o înscriere devine validă doar după confirmarea din email.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/deed.ro"
    }
  },
  "servers": [
    {
      "url": "https://edc-iasi.ena-dev.ro"
    }
  ],
  "externalDocs": {
    "description": "Ghid pentru asistenți AI",
    "url": "https://edc-iasi.ena-dev.ro/pentru-ai"
  },
  "paths": {
    "/api/v1/eveniment": {
      "get": {
        "operationId": "getEveniment",
        "summary": "Evenimentul, regulile, cifrele mari și ediția următoare",
        "responses": {
          "200": {
            "description": "Evenimentul",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eveniment"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/editii": {
      "get": {
        "operationId": "listEditii",
        "summary": "Toate edițiile, cu clasamentul și premiile",
        "responses": {
          "200": {
            "description": "Edițiile",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListaEditii"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/editii/urmatoare": {
      "get": {
        "operationId": "getEditiaUrmatoare",
        "summary": "Data, ora și locul ediției următoare + tiparul linkului de înscriere",
        "responses": {
          "200": {
            "description": "Ediția următoare",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditiaUrmatoareRaspuns"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/editii/{numar}": {
      "get": {
        "operationId": "getEditie",
        "summary": "O ediție",
        "parameters": [
          {
            "name": "numar",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ediția",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditieRaspuns"
                }
              }
            }
          },
          "404": {
            "description": "Ediția nu există",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/editii/{numar}/calendar.ics": {
      "get": {
        "operationId": "getEditieCalendar",
        "summary": "Evenimentul de calendar al ediției (iCalendar, RFC 5545)",
        "parameters": [
          {
            "name": "numar",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fișier .ics",
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Ediția nu există sau nu are dată",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/traseu": {
      "get": {
        "operationId": "getTraseu",
        "summary": "Punctele, stațiile de încărcare, distanța, urcarea și profilul de altitudine",
        "responses": {
          "200": {
            "description": "Traseul",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Traseu"
                }
              }
            }
          }
        }
      }
    },
    "/data/traseu.geojson": {
      "get": {
        "operationId": "getTraseuGeoJson",
        "summary": "Geometria traseului",
        "responses": {
          "200": {
            "description": "GeoJSON FeatureCollection",
            "content": {
              "application/geo+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/modele": {
      "get": {
        "operationId": "listModele",
        "summary": "Modelele EV acceptate de calculator și de linkul de înscriere",
        "responses": {
          "200": {
            "description": "Modelele",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListaModele"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/poate-masina-mea": {
      "get": {
        "operationId": "calculeaza",
        "summary": "Calculatorul „Poate mașina mea?” (estimare cu formula și ipotezele)",
        "parameters": [
          {
            "name": "model",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "audi-q4-etron-45",
                "bmw-ix1-xdrive30",
                "byd-atto-3",
                "byd-dolphin-60",
                "dacia-spring-45",
                "dacia-spring-65",
                "fiat-500e-42",
                "hyundai-ioniq5-84-rwd",
                "hyundai-kona-electric-65",
                "kia-ev6-84-rwd",
                "kia-niro-ev-64",
                "mercedes-eqa-250plus",
                "mg-zs-ev-long-range",
                "mg4-electric-64",
                "nissan-leaf-40",
                "nissan-leaf-eplus-62",
                "peugeot-e208-51",
                "polestar-2-lr-single-motor",
                "renault-megane-etech-ev60",
                "renault-zoe-r135-ze50",
                "skoda-enyaq-85",
                "smart-1-pro-plus",
                "tesla-model-3-lr-awd-highland",
                "tesla-model-3-rwd-highland",
                "tesla-model-y-lr-awd-juniper",
                "tesla-model-y-rwd-juniper",
                "vw-id3-pro-58",
                "vw-id4-pro-77",
                "volvo-ex30-smer"
              ]
            },
            "description": "Slug din /api/v1/modele (sunt acceptate și aliasurile)."
          },
          {
            "name": "sezon",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "vara",
                "toamna",
                "iarna"
              ],
              "default": "toamna"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rezultatul",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string",
                  "example": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculRaspuns"
                }
              }
            }
          },
          "400": {
            "description": "Model lipsă sau necunoscut",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/inscrieri": {
      "post": {
        "operationId": "creeazaInscriere",
        "summary": "Înscriere la ediția următoare (în așteptare până la confirmarea din email)",
        "description": "Creează o înscriere ÎN AȘTEPTARE și trimite omului un email cu linkul de confirmare, fișierul .ics și linkul de retragere. Nimic nu devine public. Trimite doar cu acordul explicit al utilizatorului. Limite: 10/oră/IP, 5/zi/email, 4096 octeți. Fără HTML în câmpuri; câmpurile necunoscute sunt respinse.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "description": "Recomandat. Aceeași cheie + același corp → același răspuns (antet Idempotent-Replayed: true), fără dublură, 24 h."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InscriereCerere"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Înscriere în așteptare; emailul de confirmare a plecat.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InscriereRaspuns"
                }
              }
            }
          },
          "400": {
            "description": "JSON invalid sau Idempotency-Key invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          },
          "409": {
            "description": "Nu sunt înscrieri deschise",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          },
          "413": {
            "description": "Corp prea mare",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type greșit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          },
          "422": {
            "description": "Validare: ce câmp e greșit și de ce",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EroareValidare"
                }
              }
            }
          },
          "429": {
            "description": "Prea multe cereri",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "502": {
            "description": "Emailul de confirmare nu a plecat; reîncearcă",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          },
          "503": {
            "description": "Înscrierile nu sunt configurate pe server",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Eroare"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Eroare": {
        "type": "object",
        "required": [
          "error",
          "mesaj"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "mesaj": {
            "type": "string"
          }
        }
      },
      "EroareValidare": {
        "type": "object",
        "required": [
          "error",
          "mesaj",
          "campuri"
        ],
        "properties": {
          "error": {
            "type": "string",
            "const": "validare"
          },
          "mesaj": {
            "type": "string"
          },
          "campuri": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "camp",
                "mesaj"
              ],
              "properties": {
                "camp": {
                  "type": "string"
                },
                "mesaj": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "InscriereCerere": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "nume",
          "email",
          "model"
        ],
        "properties": {
          "nume": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "model": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80,
            "description": "Modelul mașinii, ca text."
          },
          "model_slug": {
            "type": "string",
            "enum": [
              "audi-q4-etron-45",
              "bmw-ix1-xdrive30",
              "byd-atto-3",
              "byd-dolphin-60",
              "dacia-spring-45",
              "dacia-spring-65",
              "fiat-500e-42",
              "hyundai-ioniq5-84-rwd",
              "hyundai-kona-electric-65",
              "kia-ev6-84-rwd",
              "kia-niro-ev-64",
              "mercedes-eqa-250plus",
              "mg-zs-ev-long-range",
              "mg4-electric-64",
              "nissan-leaf-40",
              "nissan-leaf-eplus-62",
              "peugeot-e208-51",
              "polestar-2-lr-single-motor",
              "renault-megane-etech-ev60",
              "renault-zoe-r135-ze50",
              "skoda-enyaq-85",
              "smart-1-pro-plus",
              "tesla-model-3-lr-awd-highland",
              "tesla-model-3-rwd-highland",
              "tesla-model-y-lr-awd-juniper",
              "tesla-model-y-rwd-juniper",
              "vw-id3-pro-58",
              "vw-id4-pro-77",
              "volvo-ex30-smer"
            ]
          },
          "telefon": {
            "type": "string",
            "pattern": "^\\+?[0-9 ()./-]{6,25}$"
          },
          "baterie_kwh": {
            "type": "number",
            "minimum": 5,
            "maximum": 250
          },
          "conector": {
            "type": "string",
            "enum": [
              "ccs",
              "chademo",
              "type2",
              "altul"
            ]
          },
          "oras": {
            "type": "string",
            "maxLength": 60
          },
          "pasageri": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8
          },
          "mesaj": {
            "type": "string",
            "maxLength": 500
          },
          "editie": {
            "type": "integer",
            "minimum": 1,
            "description": "Opțional; dacă e trimis, trebuie să fie ediția deschisă acum."
          }
        }
      },
      "InscriereRaspuns": {
        "type": "object",
        "properties": {
          "stare": {
            "type": "string",
            "const": "asteapta_confirmare"
          },
          "mesaj": {
            "type": "string"
          },
          "editia": {
            "$ref": "#/components/schemas/EditiaUrmatoare"
          }
        }
      },
      "EditiaUrmatoare": {
        "type": "object",
        "properties": {
          "editie": {
            "type": "integer"
          },
          "data": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "data_text": {
            "type": "string"
          },
          "data_anuntata": {
            "type": "boolean"
          },
          "ora_intalnire": {
            "type": "string"
          },
          "plecare_cel_tarziu": {
            "type": "string"
          },
          "loc_intalnire": {
            "type": "string"
          },
          "loc_intalnire_anuntat": {
            "type": "boolean"
          },
          "inceput_iso": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "traseu": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "distanta_km": {
            "type": "number"
          },
          "calendar_ics": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "eveniment_facebook": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        }
      },
      "EditiaUrmatoareRaspuns": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "editia_urmatoare": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EditiaUrmatoare"
              },
              {
                "type": "null"
              }
            ]
          },
          "inscriere": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "mod": {
                "type": "string",
                "enum": [
                  "formular",
                  "whatsapp-numar",
                  "whatsapp-grup"
                ]
              },
              "editie": {
                "type": "integer"
              },
              "link_inscriere_tipar": {
                "type": "string"
              },
              "whatsapp_tipar": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "whatsapp_grup": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mesaj_tipar": {
                "type": "string"
              }
            }
          }
        }
      },
      "RandClasament": {
        "type": "object",
        "properties": {
          "pozitie_initiala": {
            "type": "integer"
          },
          "model": {
            "type": "string"
          },
          "model_slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "sofer": {
            "type": [
              "string",
              "null"
            ]
          },
          "baterie_kwh": {
            "type": [
              "number",
              "null"
            ]
          },
          "consum_kwh_100km": {
            "type": [
              "number",
              "null"
            ]
          },
          "opriri": {
            "type": [
              "integer",
              "null"
            ]
          },
          "timp_incarcare_min": {
            "type": [
              "number",
              "null"
            ]
          },
          "cost_total_lei": {
            "type": [
              "number",
              "null"
            ]
          },
          "nota": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Editie": {
        "type": "object",
        "properties": {
          "numar": {
            "type": "integer"
          },
          "stare": {
            "type": "string",
            "enum": [
              "incheiata",
              "azi-inainte",
              "azi-pe-traseu",
              "urmeaza",
              "neanuntata",
              "anulata"
            ]
          },
          "stare_text": {
            "type": "string"
          },
          "data": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "data_text": {
            "type": "string"
          },
          "masini_numar": {
            "type": [
              "integer",
              "null"
            ]
          },
          "rezultate_disponibile": {
            "type": "boolean"
          },
          "rezultate_complete": {
            "type": "boolean"
          },
          "clasament": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RandClasament"
            }
          },
          "premii": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "titlu": {
                  "type": "string"
                },
                "modele": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "valoare": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "unitate": {
                  "type": "string"
                }
              }
            }
          },
          "clipuri": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "nota": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ListaEditii": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "editii": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Editie"
            }
          }
        }
      },
      "EditieRaspuns": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "editie": {
            "$ref": "#/components/schemas/Editie"
          }
        }
      },
      "Eveniment": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "nume": {
            "type": "string"
          },
          "cifre": {
            "type": "object"
          },
          "reguli": {
            "type": "object"
          },
          "editia_urmatoare": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EditiaUrmatoare"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Traseu": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "distanta_anuntata_km": {
            "type": "number"
          },
          "distanta_traseu_desenat_km": {
            "type": "number"
          },
          "urcare_cumulata_m": {
            "type": "number"
          },
          "altitudine_maxima_m": {
            "type": "number"
          },
          "puncte": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "statii_incarcare": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "profil_altitudine": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "km": {
                  "type": "number"
                },
                "altitudine_m": {
                  "type": "number"
                }
              }
            }
          }
        }
      },
      "ListaModele": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "modele": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "CalculRaspuns": {
        "type": "object",
        "properties": {
          "updated_at": {
            "type": "string",
            "description": "Data actualizării setului de date (AAAA-LL-ZZ)."
          },
          "source": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "license": {
                "type": "string"
              },
              "license_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "cite_as": {
            "type": "string",
            "description": "Linia de citare: „Sursa: <site>, <url>, actualizat la <dată>. Licență: …”"
          },
          "parametri": {
            "type": "object"
          },
          "pagina": {
            "type": "string",
            "format": "uri"
          },
          "rezultat": {
            "type": "object",
            "properties": {
              "este_estimare": {
                "type": "boolean",
                "const": true
              },
              "opriri_estimate": {
                "type": "integer"
              },
              "timp_incarcare_estimat_min": {
                "type": "number"
              },
              "consum_estimat_kwh_100km": {
                "type": "number"
              },
              "energie_necesara_kwh": {
                "type": "number"
              },
              "autonomie_prima_etapa_km": {
                "type": "number"
              },
              "formula": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "ipoteze": {
                "type": "object"
              }
            }
          }
        }
      }
    }
  }
}
