{
  "SaveResourceRequest": {
    "type": "object",
    "properties": {
      "filePath": {
        "type": "string",
        "description": "The file path for the resource",
        "example": "/path/to/file"
      },
      "measurementUnit": {
        "type": "string",
        "description": "The unit of measurement",
        "example": "mm"
      },
      "generateDieline": {
        "type": "boolean",
        "description": "Flag to indicate whether to generate a dieline",
        "default": false
      }
    },
    "required": ["filePath", "measurementUnit"]
  },
  "SaveResourceResponse": {
    "type": "object",
    "properties": {
      "resUuid": {
        "type": "string",
        "format": "uuid",
        "description": "The UUID of the saved resource",
        "example": "c6041fea-736b-4d19-92cd-5cd37cddb4dc"
      },
      "dielineSvgUUID": {
        "type": "string",
        "format": "uuid",
        "description": "The UUID of the generated dieline SVG, if applicable",
        "nullable": true
      },
      "drawingId": {
        "type": "string",
        "example": 0
      },
      "mainParams": {
        "$ref": "./MainParamsSchema.json#/MainParams"
      },
      "appliedmaterial": {
        "$ref": "./MaterialSchema.json#/Material"
      }
    }
  }
}
