edutap.wallet_google.models.passes.bases.Reference#

pydantic model edutap.wallet_google.models.passes.bases.Reference#

References an existing wallet object.

It is used to create the JWT for the add to wallet link. The id must be an existing wallet object id.

Either model_name or mode_type must be set.

Show JSON schema
{
   "title": "Reference",
   "description": "References an existing wallet object.\n\nIt is used to create the JWT for the add to wallet link.\nThe id must be an existing wallet object id.\n\nEither model_name or mode_type must be set.",
   "type": "object",
   "properties": {
      "id": {
         "title": "Id",
         "type": "string"
      },
      "model_name": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Model Name"
      },
      "model_type": {
         "anyOf": [
            {},
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Model Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "id"
   ]
}

Config:
  • extra: str = forbid

Fields:
Validators:
field model_name: str | None = None#
Validated by:
field model_type: type[WithIdModel] | None = None#
Validated by:
validator check_one_of  »  all fields#