judobase.schemas.Country

pydantic model judobase.schemas.Country

Represents the data about a country.

Show JSON schema
{
   "title": "Country",
   "description": "Represents the data about a country.",
   "type": "object",
   "properties": {
      "name": {
         "description": "The full name of the country.",
         "title": "Country Name",
         "type": "string"
      },
      "id_country": {
         "description": "The unique identifier for the country.",
         "title": "Country ID",
         "type": "string"
      },
      "country_short": {
         "description": "The abbreviated country code.",
         "title": "Country Short Code",
         "type": "string"
      },
      "org_name": {
         "description": "The name of the national judo organization.",
         "title": "Organization Name",
         "type": "string"
      },
      "org_www": {
         "description": "The website URL of the national organization.",
         "title": "Organization Website",
         "type": "string"
      },
      "head_address": {
         "description": "The address of the organization's headquarters.",
         "title": "Head Address",
         "type": "string"
      },
      "head_city": {
         "description": "The city where the organization's headquarters are located.",
         "title": "Head City",
         "type": "string"
      },
      "contact_phone": {
         "description": "The contact phone number for the organization.",
         "title": "Contact Phone",
         "type": "string"
      },
      "contact_email": {
         "description": "The contact email address for the organization.",
         "title": "Contact Email",
         "type": "string"
      },
      "exclude_from_medals": {
         "description": "Indicator if the country is excluded from medal counts.",
         "title": "Exclude from Medals",
         "type": "string"
      },
      "president_name": {
         "description": "The name of the president of the national judo organization.",
         "title": "President Name",
         "type": "object"
      },
      "male_competitiors": {
         "description": "Number of male competitors from the country. (Note: Field name may contain a typo.)",
         "title": "Male Competitors",
         "type": "string"
      },
      "female_competitiors": {
         "description": "Number of female competitors from the country. (Note: Field name may contain a typo.)",
         "title": "Female Competitors",
         "type": "string"
      },
      "total_competitors": {
         "description": "The total number of competitors representing the country.",
         "title": "Total Competitors",
         "type": "integer"
      },
      "number_of_competitions": {
         "description": "The number of competitions in which the country participated.",
         "title": "Number of Competitions",
         "type": "string"
      },
      "number_of_total_competitions": {
         "description": "The total number of competitions involving the country.",
         "title": "Total Competitions",
         "type": "string"
      },
      "number_of_total_wins": {
         "description": "The total number of wins achieved by competitors from the country.",
         "title": "Total Wins",
         "type": "integer"
      },
      "number_of_total_fights": {
         "description": "The total number of fights involving competitors from the country.",
         "title": "Total Fights",
         "type": "integer"
      },
      "best_male_competitor": {
         "anyOf": [
            {
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Details of the best performing male competitor from the country.",
         "title": "Best Male Competitor"
      },
      "best_female_competitor": {
         "anyOf": [
            {
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Details of the best performing female competitor from the country.",
         "title": "Best Female Competitor"
      },
      "total_ranking_points": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "The total ranking points accumulated by the country.",
         "title": "Total Ranking Points"
      },
      "ranking": {
         "anyOf": [
            {
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Overall ranking details for the country.",
         "title": "Overall Ranking"
      },
      "ranking_male": {
         "anyOf": [
            {
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Ranking details for male competitors from the country.",
         "title": "Male Ranking"
      },
      "ranking_female": {
         "anyOf": [
            {
               "type": "object"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Ranking details for female competitors from the country.",
         "title": "Female Ranking"
      }
   },
   "required": [
      "name",
      "id_country",
      "country_short",
      "org_name",
      "org_www",
      "head_address",
      "head_city",
      "contact_phone",
      "contact_email",
      "exclude_from_medals",
      "president_name",
      "male_competitiors",
      "female_competitiors",
      "total_competitors",
      "number_of_competitions",
      "number_of_total_competitions",
      "number_of_total_wins",
      "number_of_total_fights"
   ]
}

Fields:
field best_female_competitor: dict[str, Any] | None = None

Details of the best performing female competitor from the country.

field best_male_competitor: dict[str, Any] | None = None

Details of the best performing male competitor from the country.

field contact_email: str [Required]

The contact email address for the organization.

field contact_phone: str [Required]

The contact phone number for the organization.

field country_short: str [Required]

The abbreviated country code.

field exclude_from_medals: str [Required]

Indicator if the country is excluded from medal counts.

field female_competitiors: str [Required]

Number of female competitors from the country. (Note: Field name may contain a typo.)

field head_address: str [Required]

The address of the organization’s headquarters.

field head_city: str [Required]

The city where the organization’s headquarters are located.

field id_country: str [Required]

The unique identifier for the country.

field male_competitiors: str [Required]

Number of male competitors from the country. (Note: Field name may contain a typo.)

field name: str [Required]

The full name of the country.

field number_of_competitions: str [Required]

The number of competitions in which the country participated.

field number_of_total_competitions: str [Required]

The total number of competitions involving the country.

field number_of_total_fights: int [Required]

The total number of fights involving competitors from the country.

field number_of_total_wins: int [Required]

The total number of wins achieved by competitors from the country.

field org_name: str [Required]

The name of the national judo organization.

field org_www: str [Required]

The website URL of the national organization.

field president_name: dict [Required]

The name of the president of the national judo organization.

field ranking: dict[str, Any] | None = None

Overall ranking details for the country.

field ranking_female: dict[str, Any] | None = None

Ranking details for female competitors from the country.

field ranking_male: dict[str, Any] | None = None

Ranking details for male competitors from the country.

field total_competitors: int [Required]

The total number of competitors representing the country.

field total_ranking_points: str | None = None

The total ranking points accumulated by the country.