{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/justgains-com/json-schema/justgains-com-exercise-request-schema.json",
  "title": "ExerciseRequest",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/justgains-com-openapi.json#/components/schemas/ExerciseRequest",
  "required": [
    "ExerciseCode"
  ],
  "type": "object",
  "properties": {
    "ExerciseCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "ExerciseTypeCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "PublishStatusCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "Difficulty": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "TechnicalComplexity": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "MetabolicEquivalent": {
      "type": [
        "number",
        "null"
      ],
      "format": "float"
    },
    "IsPlateloaded": {
      "type": "boolean"
    },
    "IsCardio": {
      "type": "boolean"
    },
    "OlympicRating": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "PowerLifterRating": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "CalisthenicRating": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "PopularityRating": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "MuscleStimulus": {
      "type": [
        "number",
        "null"
      ],
      "format": "float"
    },
    "IsPlyometric": {
      "type": "boolean"
    },
    "IsIsometric": {
      "type": "boolean"
    },
    "IsCalisthenic": {
      "type": "boolean"
    },
    "IsWeighted": {
      "type": "boolean"
    },
    "IsUnilateral": {
      "type": "boolean"
    },
    "IsBodyweight": {
      "type": "boolean"
    },
    "AdminNotes": {
      "type": [
        "string",
        "null"
      ]
    },
    "ExerciseTranslations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ExerciseTranslationDto"
      }
    },
    "ExerciseEquipment": {
      "$ref": "#/$defs/ExerciseEquipmentDto"
    },
    "ExerciseVideos": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ExerciseVideoDto"
      }
    },
    "ExerciseInstructions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ExerciseInstructionRequest"
      }
    },
    "ExerciseMuscles": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ExerciseMuscleDto"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Block": {
      "type": "object",
      "properties": {
        "Id": {
          "type": [
            "string",
            "null"
          ]
        },
        "Type": {
          "type": [
            "string",
            "null"
          ]
        },
        "Data": {
          "$ref": "#/$defs/Data"
        }
      },
      "additionalProperties": false
    },
    "Data": {
      "type": "object",
      "properties": {
        "Text": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ExerciseEquipmentDto": {
      "type": "object",
      "properties": {
        "Required": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "Optional": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "ExerciseInstructionData": {
      "type": "object",
      "properties": {
        "Time": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "Version": {
          "type": [
            "string",
            "null"
          ]
        },
        "Blocks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Block"
          }
        }
      },
      "additionalProperties": false
    },
    "ExerciseInstructionRequest": {
      "required": [
        "LocaleCode"
      ],
      "type": "object",
      "properties": {
        "LocaleCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "InstructionJSON": {
          "$ref": "#/$defs/ExerciseInstructionData"
        }
      },
      "additionalProperties": false
    },
    "ExerciseMuscleDto": {
      "required": [
        "MuscleCode"
      ],
      "type": "object",
      "properties": {
        "MuscleCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "IsPrimary": {
          "type": "boolean"
        },
        "TargetPercentage": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "ExerciseTranslationDto": {
      "type": "object",
      "properties": {
        "LocaleCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "ExerciseName": {
          "type": [
            "string",
            "null"
          ]
        },
        "IsPrimary": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "ExerciseVideoDto": {
      "type": "object",
      "properties": {
        "MediaElement": {
          "$ref": "#/$defs/MediaAssetDto"
        },
        "SortOrder": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "MediaAssetDto": {
      "required": [
        "FileName",
        "FilePath"
      ],
      "type": "object",
      "properties": {
        "MediaAssetId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "FileName": {
          "type": [
            "string",
            "null"
          ]
        },
        "FilePath": {
          "type": [
            "string",
            "null"
          ]
        },
        "FileSize": {
          "type": [
            "string",
            "null"
          ]
        },
        "FileFormat": {
          "type": [
            "string",
            "null"
          ]
        },
        "Description": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}