jsonSchemaFromAnnotations
fun jsonSchemaFromAnnotations(annotations: List<Annotation>, reflectSchema: KClass<*>.() -> ReferenceOr<JsonSchema>, type: JsonSchema.SchemaType, title: String? = null, required: List<String>? = null, items: ReferenceOr<JsonSchema>? = null, properties: Map<String, ReferenceOr<JsonSchema>>? = null, additionalProperties: AdditionalProperties? = null, enum: List<GenericElement?>? = null, format: String? = null, discriminator: JsonSchemaDiscriminator? = null): JsonSchema(source)
Create an instance of JsonSchema from the provided properties and supplied annotations.
This is used internally for different inference strategies.