Generates a JSON schema that matches a set schema. Args: schema: The core schema. Returns: The generated JSON schema.
(self, schema: core_schema.SetSchema)
| 1026 | return json_schema |
| 1027 | |
| 1028 | def set_schema(self, schema: core_schema.SetSchema) -> JsonSchemaValue: |
| 1029 | """Generates a JSON schema that matches a set schema. |
| 1030 | |
| 1031 | Args: |
| 1032 | schema: The core schema. |
| 1033 | |
| 1034 | Returns: |
| 1035 | The generated JSON schema. |
| 1036 | """ |
| 1037 | return self._common_set_schema(schema) |
| 1038 | |
| 1039 | def frozenset_schema(self, schema: core_schema.FrozenSetSchema) -> JsonSchemaValue: |
| 1040 | """Generates a JSON schema that matches a frozenset schema. |