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
| Parameter | Type |
|---|---|
schema | any |
typeLibrary | any |
options | { fieldVocabularyAttachments?: FieldVocabularyAttachmentRegistry; } |
options.fieldVocabularyAttachments? | FieldVocabularyAttachmentRegistry |