{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/curl-save-output.schema.json",
  "title": "curl-save-output (summary schema)",
  "description": "Coverage draft, 23 November 2026, America/Los_Angeles. Not published. Draft note; iil_id is null until live.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "curl-save-output"
    },
    "iil_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/curl-save-output/"
    },
    "claim": {
      "type": "string",
      "description": "--output writes output to the given file instead of stdout."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "curl-save-output",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/curl-save-output/",
      "claim": "--output writes output to the given file instead of stdout.",
      "claims": [
        {
          "id": "C1",
          "claim": "--output writes output to the given file instead of stdout.",
          "source_id": "S2"
        },
        {
          "id": "C2",
          "claim": "With URL globbing you can use # followed by a number in the filename.",
          "source_id": "S2"
        },
        {
          "id": "C3",
          "claim": "curl has several other ways to store and name the downloaded data.",
          "source_id": "S1"
        },
        {
          "id": "C4",
          "claim": "--remove-on-error deletes a partially saved file if curl exits with an error.",
          "source_id": "S1"
        }
      ],
      "related_slugs": [
        "curl-follow-redirects",
        "curl-post-data",
        "curl-retry"
      ],
      "related_artifacts": [
        "curl-save-output.table.json"
      ],
      "license": "CC-BY-4.0",
      "source_license": "CC-BY-4.0 (Everything curl); curl license (MIT-derived) (curl/curl (GitHub)); prose restates cited source lines in own words",
      "as_of": "2026-11-23",
      "status": "draft-20261123-cov-01"
    }
  ]
}
