Skip to main content

physics_v3_0.json

physics.json Copy Json { "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "width_length_object": { "type": "...

physics_v3_0.json

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "definitions": {
    "width_length_object": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number"
        },
        "length": {
          "type": "number"
        }
      }
    }
  },
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "mass": {
      "type": "number"
    },
    "firction": {
      "type": "number"
    },
    "thickness": {
      "type": "number"
    },
    "bend": {
      "$ref": "#/definitions/width_length_object"
    },
    "hysteresis": {
      "$ref": "#/definitions/width_length_object"
    },
    "stretch": {
      "$ref": "#/definitions/width_length_object"
    },
    "stretch_linearity": {
      "$ref": "#/definitions/width_length_object"
    },
    "shear": {
      "type": "number"
    },
    "shear_linearity": {
      "type": "number"
    },
    "shrink": {
      "$ref": "#/definitions/width_length_object"
    },
    "puffy": {
      "type": "object",
      "properties": {
        "active": {
          "type": "boolean"
        },
        "firmness": {
          "type": "number"
        }
      }
    },
    "version": {
      "type": "string"
    },
    "composition": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fiber_name": {
            "type": "string"
          },
          "percentage": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "fiber_name"
        ]
      }
    }
  },
  "required": [
    "mass"
  ]
}

Did this answer your question?