Skip to content

Commit b676ea6

Browse files
committed
replace custom properties with additionalProperty
1 parent 907f0bc commit b676ea6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/utils/structuredData.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,16 @@ export function generateAPIReference(
724724
}),
725725
programmingModel,
726726
targetPlatform,
727-
// Add standard programming language property if detected
727+
// Schema.org compliant technical properties using additionalProperty for programmingLanguage
728728
...(programmingLanguages.length > 0 && {
729-
programmingLanguage: programmingLanguages,
729+
additionalProperty: [
730+
...programmingLanguages.map((language) => ({
731+
"@type": "PropertyValue",
732+
name: "Programming Language",
733+
value: language,
734+
description: "Programming language used in the API",
735+
})),
736+
],
730737
}),
731738
about: {
732739
"@type": "Thing",

0 commit comments

Comments
 (0)