Hey @ajevans99 👋
I'm following along with the documentation and it appears a consumer of the package is not able to initialize a RootSchema as there doesn't appear to be a public initializer (given that the automatic synthesized initializer is only internal)
let schema = RootSchema(
id: "https://example.com/person.schema.json",
schema: "https://json-schema.org/draft/2020-12/schema",
subschema: .object(
.annotations(title: "Person"),
.options(
properties: [
"firstName": .string(
.annotations(description: "The person's first name.")
),
"lastName": .string(
.annotations(description: "The person's last name.")
),
"age": .integer(
.annotations(description: "Age in years which must be equal to or greater than zero."),
.options(minimum: 0)
)
]
)
)
)
Hey @ajevans99 👋 I'm following along with the documentation and it appears a consumer of the package is not able to initialize a
RootSchema
as there doesn't appear to be a public initializer (given that the automatic synthesized initializer is onlyinternal
)