Skip to content

Function: createProfileFromSchema() ​

ts
function createProfileFromSchema(
   schema, 
   typeLibrary, 
   options
): DocumentProfile;

Defined in: domain/schema-utils.ts:335

Build a DocumentProfile from JSON schema with x-sidedoc metadata.

Parameters ​

ParameterType
schemaany
typeLibraryany
options{ fieldVocabularyAttachments?: FieldVocabularyAttachmentRegistry; }
options.fieldVocabularyAttachments?FieldVocabularyAttachmentRegistry

Returns ​

DocumentProfile