{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gasquebec-ca/json-schema/gasquebec-ca-attribution-schema.json",
  "title": "Attribution",
  "description": "Ready-to-use link-back credit. Required wherever the data is displayed publicly (API terms: https://www.gasquebec.ca/en/terms); private use is exempt.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gasquebec-ca-openapi.yml#/components/schemas/Attribution",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Page to link to: the city page for city data, otherwise https://www.gasquebec.ca/"
    },
    "text": {
      "type": "object",
      "properties": {
        "fr": {
          "type": "string"
        },
        "en": {
          "type": "string"
        }
      }
    },
    "html": {
      "type": "object",
      "description": "`text` with \"Gas Québec\" as a link to `url`, ready to paste",
      "properties": {
        "fr": {
          "type": "string"
        },
        "en": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "url",
    "text",
    "html"
  ]
}