{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/progress-software/json-schema/progress-software-credential-add-schema.json",
  "title": "CredentialAdd",
  "description": "Credential Add structure",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/progress-software-credential-api-openapi.yml#/components/schemas/CredentialAdd",
  "type": "object",
  "properties": {
    "name": {
      "description": "The name of the resource",
      "type": "string"
    },
    "description": {
      "description": "The optional description of the resource",
      "type": "string"
    },
    "type": {
      "description": "Type of credential",
      "type": "string"
    },
    "propertyBags": {
      "description": "set of properties for this credential",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CredentialPropertyBag"
      }
    }
  },
  "$defs": {
    "CredentialPropertyBag": {
      "description": "List of properties to be added to the device\nProperty Names should be unique in the list.",
      "type": "object",
      "properties": {
        "name": {
          "description": "Required: Name of property",
          "maxLength": 50,
          "minLength": 0,
          "type": "string"
        },
        "value": {
          "description": "Defaults to empty. Value to be used for property.",
          "type": "string"
        }
      }
    }
  }
}