{
  "$defs": {
    "Contributor": {
      "additionalProperties": true,
      "properties": {
        "name": {
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "orcid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Orcid"
        }
      },
      "required": [
        "name"
      ],
      "title": "Contributor",
      "type": "object"
    },
    "Failure": {
      "additionalProperties": true,
      "description": "The test outcome.",
      "properties": {
        "criterion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "For example 30% load drop, separation.",
          "title": "Criterion"
        },
        "reversals_to_failure": {
          "description": "2Nf, or the suspension point when runout is true.",
          "exclusiveMinimum": 0,
          "title": "Reversals To Failure",
          "type": "number"
        },
        "runout": {
          "default": false,
          "description": "True when the test was suspended without failure.",
          "title": "Runout",
          "type": "boolean"
        }
      },
      "required": [
        "reversals_to_failure"
      ],
      "title": "Failure",
      "type": "object"
    },
    "HalfLifeResponse": {
      "additionalProperties": true,
      "description": "Reduced stabilized response, by convention at half life.",
      "properties": {
        "at_life_fraction": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "maximum": 1,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Life fraction the values were read at, 0.5 is half life.",
          "title": "At Life Fraction"
        },
        "elastic_strain_amplitude": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Elastic Strain Amplitude"
        },
        "mean_stress": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Mean Stress"
        },
        "plastic_strain_amplitude": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Plastic Strain Amplitude"
        },
        "stress_amplitude": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stress Amplitude"
        }
      },
      "title": "HalfLifeResponse",
      "type": "object"
    },
    "MaterialBasquin": {
      "additionalProperties": true,
      "properties": {
        "b": {
          "description": "Fatigue strength exponent, negative.",
          "exclusiveMaximum": 0,
          "title": "B",
          "type": "number"
        },
        "sigma_f": {
          "description": "Fatigue strength coefficient, MPa.",
          "exclusiveMinimum": 0,
          "title": "Sigma F",
          "type": "number"
        }
      },
      "required": [
        "sigma_f",
        "b"
      ],
      "title": "MaterialBasquin",
      "type": "object"
    },
    "MaterialCoffinManson": {
      "additionalProperties": true,
      "properties": {
        "c": {
          "description": "Fatigue ductility exponent, negative.",
          "exclusiveMaximum": 0,
          "title": "C",
          "type": "number"
        },
        "eps_f": {
          "description": "Fatigue ductility coefficient.",
          "exclusiveMinimum": 0,
          "title": "Eps F",
          "type": "number"
        }
      },
      "required": [
        "eps_f",
        "c"
      ],
      "title": "MaterialCoffinManson",
      "type": "object"
    },
    "MaterialDoc": {
      "additionalProperties": true,
      "description": "``lcf-strain-life/material@1``, the constants document.",
      "properties": {
        "E": {
          "description": "Elastic modulus, MPa.",
          "exclusiveMinimum": 0,
          "title": "E",
          "type": "number"
        },
        "basquin": {
          "$ref": "#/$defs/MaterialBasquin"
        },
        "coffin_manson": {
          "$ref": "#/$defs/MaterialCoffinManson"
        },
        "name": {
          "minLength": 1,
          "title": "Name",
          "type": "string"
        },
        "provenance": {
          "anyOf": [
            {
              "$ref": "#/$defs/MaterialProvenance"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "ramberg_osgood": {
          "anyOf": [
            {
              "$ref": "#/$defs/MaterialRambergOsgood"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "schema": {
          "const": "lcf-strain-life/material",
          "title": "Schema",
          "type": "string"
        },
        "transition_reversals": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Transition Reversals"
        },
        "units": {
          "$ref": "#/$defs/MaterialUnits"
        },
        "version": {
          "const": 1,
          "title": "Version",
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "version",
        "name",
        "units",
        "E",
        "basquin",
        "coffin_manson"
      ],
      "title": "MaterialDoc",
      "type": "object"
    },
    "MaterialProvenance": {
      "additionalProperties": true,
      "properties": {
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Notes"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Citation for the constants.",
          "title": "Source"
        }
      },
      "title": "MaterialProvenance",
      "type": "object"
    },
    "MaterialRambergOsgood": {
      "additionalProperties": true,
      "properties": {
        "K_prime": {
          "description": "Cyclic strength coefficient, MPa.",
          "exclusiveMinimum": 0,
          "title": "K Prime",
          "type": "number"
        },
        "n_prime": {
          "description": "Cyclic strain hardening exponent.",
          "exclusiveMinimum": 0,
          "title": "N Prime",
          "type": "number"
        }
      },
      "required": [
        "K_prime",
        "n_prime"
      ],
      "title": "MaterialRambergOsgood",
      "type": "object"
    },
    "MaterialUnits": {
      "additionalProperties": false,
      "description": "The fixed unit convention of material@1.",
      "properties": {
        "life": {
          "const": "reversals",
          "title": "Life",
          "type": "string"
        },
        "strain": {
          "const": "fraction",
          "title": "Strain",
          "type": "string"
        },
        "stress": {
          "const": "MPa",
          "title": "Stress",
          "type": "string"
        }
      },
      "required": [
        "stress",
        "strain",
        "life"
      ],
      "title": "MaterialUnits",
      "type": "object"
    },
    "PerCycleTable": {
      "additionalProperties": true,
      "description": "Optional per-cycle evolution table, the raw-data differentiator.",
      "properties": {
        "columns": {
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "title": "Columns",
          "type": "array"
        },
        "rows": {
          "items": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "title": "Rows",
          "type": "array"
        },
        "units": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unit per column when not the fixed set.",
          "title": "Units"
        }
      },
      "required": [
        "columns",
        "rows"
      ],
      "title": "PerCycleTable",
      "type": "object"
    },
    "RecordProvenance": {
      "additionalProperties": true,
      "description": "Where the record came from and on what basis it is shared.",
      "properties": {
        "license": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "SPDX id when the contributor licenses own data.",
          "title": "License"
        },
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Notes"
        },
        "origin": {
          "anyOf": [
            {
              "enum": [
                "own-data",
                "republished-factual",
                "digitized",
                "permissioned"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "own-data, republished-factual, digitized, permissioned.",
          "title": "Origin"
        },
        "source": {
          "description": "Citation or origin of the data. Required.",
          "minLength": 1,
          "title": "Source",
          "type": "string"
        }
      },
      "required": [
        "source"
      ],
      "title": "RecordProvenance",
      "type": "object"
    },
    "RecordUnits": {
      "additionalProperties": false,
      "description": "The fixed unit convention of test-record@1.",
      "properties": {
        "life": {
          "const": "reversals",
          "default": "reversals",
          "title": "Life",
          "type": "string"
        },
        "strain": {
          "const": "fraction",
          "default": "fraction",
          "title": "Strain",
          "type": "string"
        },
        "stress": {
          "const": "MPa",
          "default": "MPa",
          "title": "Stress",
          "type": "string"
        },
        "temperature": {
          "const": "C",
          "default": "C",
          "title": "Temperature",
          "type": "string"
        }
      },
      "title": "RecordUnits",
      "type": "object"
    },
    "Specimen": {
      "additionalProperties": true,
      "description": "ASTM E606-style specimen description, all optional.",
      "properties": {
        "gauge_diameter_mm": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Gauge Diameter Mm"
        },
        "gauge_length_mm": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Gauge Length Mm"
        },
        "geometry": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "For example uniform gauge, hourglass.",
          "title": "Geometry"
        },
        "orientation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Sampling orientation, for example L, LT.",
          "title": "Orientation"
        },
        "surface_finish": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Surface Finish"
        }
      },
      "title": "Specimen",
      "type": "object"
    },
    "TestControl": {
      "additionalProperties": true,
      "description": "How the test was driven.",
      "properties": {
        "control_mode": {
          "default": "strain",
          "enum": [
            "strain",
            "stress"
          ],
          "title": "Control Mode",
          "type": "string"
        },
        "environment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "For example lab air, vacuum, 3.5% NaCl.",
          "title": "Environment"
        },
        "frequency_hz": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Frequency Hz"
        },
        "strain_amplitude": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Controlled true strain amplitude.",
          "title": "Strain Amplitude"
        },
        "strain_rate": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Strain rate, per second.",
          "title": "Strain Rate"
        },
        "strain_ratio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "R ratio of the controlled strain.",
          "title": "Strain Ratio"
        },
        "stress_amplitude": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Controlled true stress amplitude, MPa.",
          "title": "Stress Amplitude"
        },
        "stress_ratio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Stress Ratio"
        },
        "temperature_C": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Temperature C"
        },
        "waveform": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "For example triangular, sinusoidal.",
          "title": "Waveform"
        }
      },
      "title": "TestControl",
      "type": "object"
    },
    "TestRecordDoc": {
      "additionalProperties": true,
      "description": "``lcf-strain-life/test-record@1``, one strain-controlled fatigue test.",
      "properties": {
        "condition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Heat treatment or material condition.",
          "title": "Condition"
        },
        "failure": {
          "$ref": "#/$defs/Failure"
        },
        "material": {
          "minLength": 1,
          "title": "Material",
          "type": "string"
        },
        "per_cycle": {
          "anyOf": [
            {
              "$ref": "#/$defs/PerCycleTable"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "provenance": {
          "$ref": "#/$defs/RecordProvenance"
        },
        "record_id": {
          "minLength": 1,
          "title": "Record Id",
          "type": "string"
        },
        "response": {
          "anyOf": [
            {
              "$ref": "#/$defs/HalfLifeResponse"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "schema": {
          "const": "lcf-strain-life/test-record",
          "title": "Schema",
          "type": "string"
        },
        "specimen": {
          "anyOf": [
            {
              "$ref": "#/$defs/Specimen"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "test": {
          "$ref": "#/$defs/TestControl"
        },
        "units": {
          "$ref": "#/$defs/RecordUnits"
        },
        "version": {
          "const": 1,
          "title": "Version",
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "version",
        "record_id",
        "material",
        "units",
        "test",
        "failure",
        "provenance"
      ],
      "title": "TestRecordDoc",
      "type": "object"
    }
  },
  "$id": "https://dfieser.github.io/lcf-strain-life/docs/schemas/collection.v1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": true,
  "description": "``lcf-strain-life/collection@1``, a dataset manifest.",
  "properties": {
    "contributors": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Contributor"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Contributors"
    },
    "created": {
      "anyOf": [
        {
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "ISO date the collection was assembled.",
      "title": "Created"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Description"
    },
    "doi": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Doi"
    },
    "homepage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Homepage"
    },
    "license": {
      "description": "SPDX id of the compilation, per-record basis may differ.",
      "minLength": 1,
      "title": "License",
      "type": "string"
    },
    "materials": {
      "items": {
        "$ref": "#/$defs/MaterialDoc"
      },
      "title": "Materials",
      "type": "array"
    },
    "name": {
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "records": {
      "items": {
        "$ref": "#/$defs/TestRecordDoc"
      },
      "title": "Records",
      "type": "array"
    },
    "schema": {
      "const": "lcf-strain-life/collection",
      "title": "Schema",
      "type": "string"
    },
    "version": {
      "const": 1,
      "title": "Version",
      "type": "integer"
    }
  },
  "required": [
    "schema",
    "version",
    "name",
    "license"
  ],
  "title": "lcf-strain-life/collection@1",
  "type": "object"
}
