Skip to content

@oona/vlo / index / projectSchema

Function: projectSchema() ​

projectSchema(schema): Json

Defined in: sdk/ts/sdk/src/core/schema-projection.ts:55

Returns a copy of schema with every annotation keyword removed from every schema object in it. Arrays are walked (anyOf, prefixItems, …) in order; the entries of a name-keyed map (properties, $defs, …) keep their names and have their values projected; scalars pass through. The input is never mutated.

Parameters ​

schema ​

Json

Returns ​

Json