Provider

pydantic model Provider[source]

A provider.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Show JSON schema
{
   "title": "Provider",
   "description": "A provider.",
   "type": "object",
   "properties": {
      "code": {
         "title": "Code",
         "description": "A locally unique code within the prefix for the provider",
         "type": "string"
      },
      "name": {
         "title": "Name",
         "description": "Name of the provider",
         "type": "string"
      },
      "description": {
         "title": "Description",
         "description": "Description of the provider",
         "type": "string"
      },
      "homepage": {
         "title": "Homepage",
         "description": "Homepage of the provider",
         "type": "string"
      },
      "uri_format": {
         "title": "URI Format",
         "description": "The URI format string, which must have at least one ``$1`` in it",
         "type": "string"
      }
   },
   "required": [
      "code",
      "name",
      "description",
      "homepage",
      "uri_format"
   ]
}

Fields
field code: str [Required]

A locally unique code within the prefix for the provider

field description: str [Required]

Description of the provider

field homepage: str [Required]

Homepage of the provider

field name: str [Required]

Name of the provider

field uri_format: str [Required]

The URI format string, which must have at least one $1 in it

resolve(identifier)[source]

Resolve the identifier into a URI.

Parameters

identifier (str) – The identifier in the semantic space

Return type

str

Returns

The URI for the identifier