This commit is contained in:
=
2023-01-23 10:09:08 -05:00
parent 8f03959a1b
commit 94ac0d60b0
+3 -4
View File
@@ -1,9 +1,10 @@
"""Notes / TODO:
- no support for (e.g. "multipleOf" : 10), as of yet, as this doesn't appear to
- No support for (e.g. "multipleOf" : 10), as of yet, as this doesn't appear to
be included in the pydantic-core schema.
- Support must be added for class Config e.g. schema_extra:
class Quintessense(BaseModel):
class Example(BaseModel):
id: int = 123
class Config:
@@ -132,8 +133,6 @@ def get_schema_property_json(field_name: str, inner_schema_field: Dict[str, Any]
else:
types.append(internal_to_json_types(declared_type))
# Support for typed arrays, which appear in JSON Schema as:
# "items": {"type": "number"}
if 'items_schema' in inner_schema_field['schema']: