Skip to main content

material_group_item_v1_0.json

material_group_item.json Copy Json { "$schema": "http://json-schema.org/draft-04/schema#", "allOf": [{ "type": "object", "propertie...

material_group_item_v1_0.json

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "allOf": [
    {
      "type": "object",
      "properties": {},
      "required": [
        "type"
      ]
    },
    {
      "oneOf": [
        {
          "type": "object",
          "description": "fabric",
          "properties": {
            "type": {
              "enum": [
                "fabric",
                "trim_edge"
              ]
            },
            "allover_print": {
              "type": "boolean"
            }
          }
        },
        {
          "type": "object",
          "description": "seam",
          "properties": {
            "type": {
              "enum": [
                "seam"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "zipper",
          "properties": {
            "type": {
              "enum": [
                "puller",
                "draw_cord",
                "teeth_closed",
                "teeth_open",
                "stopper",
                "tape"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "button",
          "properties": {
            "type": {
              "enum": [
                "button",
                "buttonhole"
              ]
            }
          }
        }
      ]
    }
  ]
}

Did this answer your question?