From 94ac0d60b042ed7ef7fb9289af8f35afacbb220f Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 23 Jan 2023 10:09:08 -0500 Subject: [PATCH] cleanup --- pydantic/json_schema.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pydantic/json_schema.py b/pydantic/json_schema.py index 3b4bcfd..8f4865f 100644 --- a/pydantic/json_schema.py +++ b/pydantic/json_schema.py @@ -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']: