Uses of Interface
de.xima.fc.prompt.service.support.IJsonSchemaTransformerBuilder
Packages that use IJsonSchemaTransformerBuilder
Package
Description
The prompt API is kept intentionally low-level to support a wide range of use cases.
-
Uses of IJsonSchemaTransformerBuilder in de.xima.fc.prompt.service.support
Methods in de.xima.fc.prompt.service.support that return IJsonSchemaTransformerBuilderModifier and TypeMethodDescriptionIJsonSchemaTransformerBuilder.convertOneOfToAnyOf()Adds a transformation that converts all "oneOf" keywords to "anyOf" keywords, keeping the same subschemas.IJsonSchemaTransformerBuilder.forbidAdditionalProperties()Adds a transformation step that forbids additional properties in all objects, i.e. sets "additionalProperties" to false in all applicable schemas.IJsonSchemaTransformerBuilder.forbidOptionalProperties(ForbidOptionalPropertiesMode mode) Adds a transformation step that makes all properties required.IJsonSchemaTransformerBuilder.keepFormats(Iterable<?> formats) Adds a transformation that keeps only the given supported formats for the "format" keyword.IJsonSchemaTransformerBuilder.keepKeywords(Iterable<?> keywords) Adds a transformation step that keeps only the given keywords in all objects in the schema, removing all other keywords.IJsonSchemaTransformerBuilder.keepKnownKeywords(Iterable<?> keywords) Adds a transformation that keeps only the given keywords in all objects in the schema, removing all other keywords.IJsonSchemaTransformerBuilder.moveConstIntoEnum()Adds a transformation step that moves the "const" keyword into an "enum" keyword with a single value; and removes the "const" keyword.IJsonSchemaTransformerBuilder.moveExamplesIntoDescription()Adds a transformation step that moves the "examples" keyword into the "description" keyword, appending the examples to the description.IJsonSchemaTransformerBuilder.prettyPrint(int indent) Sets whether to pretty-print the output JSON schema, and if so, with how many spaces to indent.IJsonSchemaTransformerBuilder.removeFormats(Iterable<?> formats) Adds a transformation that removes "format" keyword if its value is one of the given formats.IJsonSchemaTransformerBuilder.removeKeywords(Iterable<?> keywords) Adds a transformation that removes the given keywords from all objects in the schema.IJsonSchemaTransformerBuilder.removeRequiredWithoutDefinition()Removes from the "required" array all property names that do not exist in the "properties" object are not matched by a "patternProperties".IJsonSchemaTransformerBuilder.removeUnknownKeywords()Adds a transformation that removes all unknown keywords from all objects in the schema, i.e. keywords other than those defined by the JSON schema specification.IJsonSchemaTransformerBuilder.removeUnneededTypeConstraints()Adds a transformation that removes type-related constraints that cannot apply to the schema's type.IJsonSchemaTransformerBuilder.requireRootObject(String rootPropertyName) Adds a transformation that requires the root schema to be an object schema that allows only objects, i.e.IPromptJsonSchemaService.transformJsonSchema()Gets a builder for transforming JSON schemas.IJsonSchemaTransformerBuilder.upgradeToSchemaVersion(EJsonSchemaVersion targetVersion) Adds a transformation that upgrades the schema to the given target version, applying necessary transformations as needed.