JSON Schema objects for tools: properties, required, additionalProperties
Answer: By default, the properties defined by the properties keyword are not required, and by default any additional properties are allowed.
Keywords
requiredtakes an array of zero or more strings; each must be unique. In Draft 4,requiredmust contain at least one string.additionalPropertiescontrols properties not listed inpropertiesor matched bypatternProperties. Its value is a schema;falsedisallows extra properties.minPropertiesandmaxPropertiesrestrict the number of properties; each must be a non-negative integer.unevaluatedProperties(new in draft 2019-09) avoids redeclaring properties when extending a schema.
From Pydantic
BaseModel.model_json_schema returns a jsonable dict. In its example, a field size: float | None = None becomes anyOf number or null with a default, and only count lands in required.
See also
- ao-structured-openai-structured-outputs
- ao-structured-json-schema-composition
- ao-structured-gemini-json-schema
- ao-structured-across-providers
Claims
- id: C1 claim: Properties are optional by default. source: S1 evidence: "the properties defined by the
propertieskeyword are not required"
- id: C2 claim: Extra properties are allowed by default. source: S1 evidence: "By default any additional properties are allowed."
- id: C3 claim: model_json_schema returns a jsonable dict. source: S2 evidence: "returns a jsonable dict of a model's schema"
Sources
- [S1] Understanding JSON Schema: object. json-schema-org/website (GitHub). https://github.com/json-schema-org/website/blob/main/pages/understanding-json-schema/reference/object.md . License: BSD-3-Clause. Accessed 2026-11-16.
- [S2] JSON Schema (Pydantic docs). pydantic/pydantic (GitHub). https://github.com/pydantic/pydantic/blob/main/docs/concepts/json_schema.md . License: MIT. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: json-schema-org/website (GitHub), Understanding JSON Schema: object, BSD-3-Clause (https://raw.githubusercontent.com/json-schema-org/website/main/LICENSE). Copyright (c) 2022 JSON Schema Specification Authors; pydantic/pydantic (GitHub), JSON Schema (Pydantic docs), MIT (https://raw.githubusercontent.com/pydantic/pydantic/main/LICENSE). Copyright (c) 2017 to present Pydantic Services Inc. and individual contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: json-schema-org/website (GitHub), Understanding JSON Schema: object, BSD-3-Clause (https://raw.githubusercontent.com/json-schema-org/website/main/LICENSE). Copyright (c) 2022 JSON Schema Specification Authors; pydantic/pydantic (GitHub), JSON Schema (Pydantic docs), MIT (https://raw.githubusercontent.com/pydantic/pydantic/main/LICENSE). Copyright (c) 2017 to present Pydantic Services Inc. and individual contributors.
Cite this
iinventedlight. 2026. "JSON Schema objects for tools: properties, required, additionalProperties." iinventedlight Library, iil:note:k11k6z40, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-structured-json-schema-objects/. License: CC-BY-4.0.
@misc{iil_note_k11k6z40,
author = {{iinventedlight}},
title = {{JSON Schema objects for tools: properties, required, additionalProperties}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-structured-json-schema-objects/},
note = {Permanent ID iil:note:k11k6z40. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-structured-json-schema-objects.md.