Companion

object Companion

Properties

Link copied to clipboard
const val FORMAT: Int = 1

The format version of this structure; a reader refuses another.

Link copied to clipboard

Where a module's fragment lives on the classpath: META-INF/wow/manifest/<module>.json.

Link copied to clipboard

Where a module registers, beside its fragment, the model provider the compiler generates, for ServiceLoader: a resource's name both the compiler, which writes it, and the service's merge, which reads it, use.

Functions

Link copied to clipboard
fun arraySchema(items: Map<String, Any?>, unique: Boolean = false): Map<String, Any?>

The inline schema of an array of items, of distinct values when unique.

Link copied to clipboard

Whether ref is a reference into $defs (schemaRef): a command named by its class, say.

Link copied to clipboard
fun nullableSchema(schema: Map<String, Any?>): Map<String, Any?>

The inline schema of a value of schema or null, as the completed schemas write a nullable value: null among its types, or, for a schema of no type such as a reference, a null alternative beside it.

Link copied to clipboard
fun refSchema(key: String): Map<String, Any?>

The inline schema of a reference to the schema key of $defs.

Link copied to clipboard
fun refsOf(schema: Map<String, Any?>): List<String>

The $defs references an inline schema holds, its own, its items' and its alternatives', in order.

Link copied to clipboard

The key of $defs ref points to.

Link copied to clipboard

The reference to the schema key of $defs.