{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rolefig-com/json-schema/rolefig-com-employer-company-update-result-schema.json",
  "title": "EmployerCompanyUpdateResult",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rolefig-com-openapi.yml#/components/schemas/EmployerCompanyUpdateResult",
  "type": "object",
  "properties": {
    "catalog": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1"
        },
        "company": {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string",
              "maxLength": 100,
              "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "website": {
              "type": "string",
              "format": "uri"
            },
            "tagline": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "description": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20000
            },
            "industry": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "locations": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "logoUrl": {
              "type": "string",
              "format": "uri"
            },
            "status": {
              "type": "string",
              "enum": [
                "draft",
                "published"
              ]
            },
            "sameAs": {
              "minItems": 1,
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "headquarters": {
              "type": "object",
              "properties": {
                "streetAddress": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "locality": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "region": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "postalCode": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 20
                },
                "country": {
                  "type": "string",
                  "pattern": "^[A-Z]{2}$"
                }
              },
              "required": [
                "locality",
                "country"
              ],
              "additionalProperties": false
            },
            "size": {
              "type": "string",
              "enum": [
                "1-10",
                "11-50",
                "51-200",
                "201-500",
                "501-1000",
                "1001-5000",
                "5001+"
              ]
            },
            "foundedYear": {
              "type": "integer",
              "minimum": 1800,
              "maximum": 9007199254740991
            },
            "benefits": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              }
            },
            "workplacePolicy": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "hiringProcess": {
              "minItems": 1,
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            }
          },
          "required": [
            "slug",
            "name",
            "website",
            "tagline",
            "description",
            "industry",
            "locations",
            "status"
          ],
          "additionalProperties": false
        },
        "jobs": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string",
                "maxLength": 100,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30000
              },
              "department": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "employmentType": {
                "type": "string",
                "enum": [
                  "full-time",
                  "part-time",
                  "contract"
                ]
              },
              "workplaceType": {
                "type": "string",
                "enum": [
                  "remote",
                  "hybrid",
                  "on-site"
                ]
              },
              "location": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "applicantLocationRequirements": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300
                }
              },
              "compensation": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "min": {
                    "type": "number",
                    "minimum": 0
                  },
                  "max": {
                    "type": "number",
                    "minimum": 0
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "year",
                      "month",
                      "week",
                      "day",
                      "hour"
                    ]
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": false
              },
              "sections": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "heading": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    },
                    "items": {
                      "minItems": 1,
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10000
                      }
                    }
                  },
                  "required": [
                    "heading",
                    "items"
                  ],
                  "additionalProperties": false
                }
              },
              "applyUrl": {
                "type": "string",
                "format": "uri"
              },
              "sourceUrl": {
                "type": "string",
                "format": "uri"
              },
              "validThrough": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "published",
                  "closed"
                ]
              },
              "managedJobId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "sourceRevision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "datePosted": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                ]
              },
              "addresses": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "streetAddress": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "locality": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "region": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "postalCode": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 20
                    },
                    "country": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "required": [
                    "locality",
                    "country"
                  ],
                  "additionalProperties": false
                }
              },
              "remoteEligibility": {
                "type": "object",
                "properties": {
                  "countries": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "regions": {
                    "maxItems": 60,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "country": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      },
                      "required": [
                        "country",
                        "code"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "countries"
                ],
                "additionalProperties": false
              },
              "educationLevel": {
                "type": "string",
                "enum": [
                  "none",
                  "high-school",
                  "associate",
                  "bachelor",
                  "professional-certificate",
                  "postgraduate"
                ]
              },
              "experienceMonths": {
                "type": "integer",
                "minimum": 0,
                "maximum": 600
              },
              "experienceInPlaceOfEducation": {
                "type": "boolean"
              },
              "teamAnswers": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "answers": {
                    "minItems": 1,
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "question": {
                          "type": "string",
                          "enum": [
                            "why",
                            "challenge",
                            "week"
                          ]
                        },
                        "answer": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1200
                        },
                        "audioUrl": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^https:\\/\\/[a-z0-9.-]+(?::[0-9]{1,5})?\\/api\\/v2\\/companies\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/clips\\/[a-f0-9]{64}$"
                        }
                      },
                      "required": [
                        "question",
                        "answer"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "name",
                  "title",
                  "answers"
                ],
                "additionalProperties": false
              },
              "facts": {
                "type": "object",
                "properties": {
                  "shifts": {
                    "maxItems": 4,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "day",
                        "evening",
                        "night",
                        "rotating"
                      ]
                    }
                  },
                  "weekends": {
                    "type": "string",
                    "enum": [
                      "required",
                      "none"
                    ]
                  },
                  "overtime": {
                    "type": "boolean",
                    "const": true
                  },
                  "credentials": {
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  },
                  "noLicense": {
                    "type": "boolean",
                    "const": true
                  },
                  "ownTools": {
                    "type": "boolean",
                    "const": true
                  },
                  "ownVehicle": {
                    "type": "boolean",
                    "const": true
                  },
                  "drugTest": {
                    "type": "boolean",
                    "const": true
                  },
                  "backgroundCheck": {
                    "type": "boolean",
                    "const": true
                  },
                  "languages": {
                    "maxItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "const": "spanish"
                    }
                  },
                  "payFrequency": {
                    "type": "string",
                    "enum": [
                      "weekly",
                      "daily"
                    ]
                  },
                  "lifting": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  }
                },
                "required": [
                  "shifts",
                  "credentials",
                  "languages"
                ],
                "additionalProperties": false
              },
              "sourceCheckedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "sourceExpiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "firstSeenAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "dateModified": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "slug",
              "title",
              "description",
              "employmentType",
              "workplaceType",
              "location",
              "compensation",
              "sections",
              "applyUrl",
              "status",
              "revision"
            ],
            "additionalProperties": false
          }
        },
        "revision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "version",
        "company",
        "jobs",
        "revision"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "catalog"
  ],
  "additionalProperties": false
}