Skip to content

JSONFoundation 2.2.0

Choose a tag to compare

@odrobnik odrobnik released this 27 Jun 07:30

Add the @Schema macro in its own JSONFoundationMacros target.

Moves the @Schema macro into JSONFoundation alongside the schema model it targets (SchemaMetadata, SchemaPropertyInfo, SchemaRepresentable), so any JSONFoundation consumer gets @Schema without depending on SwiftMCP.

  • New build-time .macro target JSONFoundationMacros (SchemaMacro + the Documentation / String helpers it needs), behind swift-syntax.
  • Public @Schema declaration in the JSONFoundation target.
  • Tests covering conformance synthesis, doc extraction, required/optional, and JSONSchema bridging.

Full Changelog: 2.1.2...2.2.0