← All notes

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

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

Claims

Sources

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

Permanent ID: iil:note:k11k6z40

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.},
}

Markdown

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.