{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/confighub/json-schema/confighub-extended-organization-member-schema.json",
  "title": "ExtendedOrganizationMember",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/confighub-organizationmember-api-openapi.yml#/components/schemas/ExtendedOrganizationMember",
  "type": "object",
  "properties": {
    "Error": {
      "$ref": "#/$defs/ResponseError"
    },
    "OrganizationMember": {
      "$ref": "#/$defs/OrganizationMember"
    },
    "ViewColumns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ViewColumn"
      },
      "description": "The values of the columns of the View named by the view parameter, in the View's column order. A column that selects several values, such as one with a wildcard, has an entry for each, all with the column's Name.",
      "x-go-type-skip-optional-pointer": true
    }
  },
  "$defs": {
    "ErrorItem": {
      "type": "object",
      "properties": {
        "Description": {
          "type": "string",
          "description": "A clear explanation of what went wrong",
          "x-go-type-skip-optional-pointer": true
        },
        "Item": {
          "type": "string",
          "description": "The name of the field, resource, or entity that the error relates to",
          "x-go-type-skip-optional-pointer": true
        }
      }
    },
    "ErrorMetadata": {
      "type": "object",
      "properties": {
        "EntityID": {
          "type": "string",
          "description": "Optional ID of the entity this error relates to",
          "x-go-type-skip-optional-pointer": true
        },
        "EntitySlug": {
          "type": "string",
          "description": "Optional slug of the entity this error relates to",
          "x-go-type-skip-optional-pointer": true
        },
        "EntityType": {
          "type": "string",
          "description": "Optional type of the entity this error relates to",
          "x-go-type-skip-optional-pointer": true
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorItem"
          },
          "description": "Collection of error details",
          "x-go-type-skip-optional-pointer": true
        }
      }
    },
    "OrganizationMember": {
      "type": "object",
      "properties": {
        "DisplayName": {
          "type": "string",
          "description": "Friendly name for the organization member User.",
          "x-confighub-where": {
            "dataType": "string"
          },
          "x-go-type-skip-optional-pointer": true
        },
        "ExternalID": {
          "type": "string",
          "description": "Unique identifier for the External Identity Provider record matching this User.",
          "x-confighub-where": {
            "dataType": "uuid"
          },
          "x-go-type-skip-optional-pointer": true
        },
        "ExternalOrganizationID": {
          "type": "string",
          "description": "Unique identifier for the External Identity Provider record matching this organization.",
          "x-go-type-skip-optional-pointer": true
        },
        "OrganizationID": {
          "type": "string",
          "description": "Unique identifier for an organization.",
          "format": "uuid",
          "x-go-type-skip-optional-pointer": true,
          "x-omitzero": true
        },
        "ProfilePictureURL": {
          "type": "string",
          "description": "The URL to get the profile avatar picture of the User.",
          "x-go-type-skip-optional-pointer": true
        },
        "Slug": {
          "type": "string",
          "description": "Unique URL-safe identifier for the organization member User.",
          "x-confighub-where": {
            "dataType": "string"
          },
          "x-go-type-skip-optional-pointer": true
        },
        "UserID": {
          "type": "string",
          "description": "Unique identifier for the organization member User.",
          "format": "uuid",
          "x-confighub-where": {
            "dataType": "uuid"
          },
          "x-go-type-skip-optional-pointer": true,
          "x-omitzero": true
        },
        "Username": {
          "type": "string",
          "description": "Unique username for a User. Must be unique for all of ConfigHub.",
          "x-confighub-where": {
            "dataType": "string"
          },
          "x-go-type-skip-optional-pointer": true
        }
      },
      "description": "a User given membership on the Organization"
    },
    "ResponseError": {
      "type": "object",
      "properties": {
        "Details": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Additional context messages",
          "x-go-type-skip-optional-pointer": true
        },
        "ErrorMetadata": {
          "allOf": [
            {
              "$ref": "#/$defs/ErrorMetadata"
            }
          ],
          "description": "Structured error details like field violations"
        },
        "Message": {
          "type": "string",
          "description": "The primary error message",
          "x-go-type-skip-optional-pointer": true
        },
        "Status": {
          "type": "integer",
          "description": "HTTP status code",
          "x-go-type-skip-optional-pointer": true
        },
        "Type": {
          "type": "string",
          "description": "The category of the error, as a code: UserInput, Validation, Data, Authentication, Permission, NotFound, Conflict, AlreadyExists, Unprocessable, Locked, PreconditionFailed, TooManyRequests, Unexpected, GatewayTimeout, or ServiceUnavailable",
          "x-go-type-skip-optional-pointer": true
        }
      }
    },
    "ViewColumn": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "x-go-type-skip-optional-pointer": true
        },
        "Value": {
          "type": "string",
          "x-go-type-skip-optional-pointer": true
        }
      }
    }
  }
}