Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes rte & url slug models #92

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
MigrationElementModels,
MigrationItemSystem,
MigrationItem,
MigrationItemSystem,
elementsBuilder,
} from "@kontent-ai/migration-toolkit";

Expand Down Expand Up @@ -75,10 +75,8 @@ const movie: MovieItem = {
}),
plot: elementsBuilder.richTextElement({
// Check allowed HTML elements in rich text value at https://kontent.ai/learn/rich-text-in-mapi
value: {
value: `<h1>Warrior</h1><p>...</p>`,
components: [],
},
value: `<h1>Warrior</h1><p>...</p>`,
components: [],
}),
releasecategory: elementsBuilder.taxonomyElement({
value: [
Expand All @@ -92,10 +90,8 @@ const movie: MovieItem = {
}),
seoname: elementsBuilder.urlSlugElement({
// The value is empty because it's autogenerated based on a dependent text element
value: {
mode: "autogenerated",
value: "",
},
mode: "autogenerated",
value: "",
}),
stars: elementsBuilder.linkedItemsElement({
value: [
Expand Down
Loading