Generates a JSON schema that matches a UUID. Args: schema: The core schema. Returns: The generated JSON schema.
(self, schema: core_schema.UuidSchema)
| 2074 | return json_schema |
| 2075 | |
| 2076 | def uuid_schema(self, schema: core_schema.UuidSchema) -> JsonSchemaValue: |
| 2077 | """Generates a JSON schema that matches a UUID. |
| 2078 | |
| 2079 | Args: |
| 2080 | schema: The core schema. |
| 2081 | |
| 2082 | Returns: |
| 2083 | The generated JSON schema. |
| 2084 | """ |
| 2085 | return {'type': 'string', 'format': 'uuid'} |
| 2086 | |
| 2087 | def definitions_schema(self, schema: core_schema.DefinitionsSchema) -> JsonSchemaValue: |
| 2088 | """Generates a JSON schema that matches a schema that defines a JSON object with definitions. |
no outgoing calls