Options for converting NBT schemas to JSON schemas.

interface ConvertOptions {
    inlineRefs?: boolean;
    makeValueSchema?: boolean;
}

Properties

inlineRefs?: boolean

If $refs should be inlined.

true
makeValueSchema?: boolean

If the schema should be for the value of the compound instead of the whole compound (as in instead of {"type":"compound","value":{...}} it would make a schema just for the value property (the {...})).

false