Skip to content

Conversation

@mattt
Copy link
Owner

@mattt mattt commented May 5, 2025

let schema: JSONSchema = .object(
    title: "Person",
    description: "A human being",
    examples: [["name": "Jane"]]
)

schema.title // "Person"
schema.description // "A person object"
schema.examples?.count // 1

@mattt mattt merged commit f30aec4 into main May 5, 2025
1 check passed
@mattt mattt deleted the mattt/convenience branch May 5, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants