Generates a JSON schema that matches a date value. Args: schema: The core schema. Returns: The generated JSON schema.
(self, schema: core_schema.DateSchema)
| 790 | return json_schema |
| 791 | |
| 792 | def date_schema(self, schema: core_schema.DateSchema) -> JsonSchemaValue: |
| 793 | """Generates a JSON schema that matches a date value. |
| 794 | |
| 795 | Args: |
| 796 | schema: The core schema. |
| 797 | |
| 798 | Returns: |
| 799 | The generated JSON schema. |
| 800 | """ |
| 801 | return {'type': 'string', 'format': 'date'} |
| 802 | |
| 803 | def time_schema(self, schema: core_schema.TimeSchema) -> JsonSchemaValue: |
| 804 | """Generates a JSON schema that matches a time value. |
no outgoing calls