Skip to content

Commit f24891b

Browse files
committed
fix: Throw if property starts with ext_
1 parent fe77ce1 commit f24891b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/blueprint.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,12 @@ const createProperty = (
15041504
): Property => {
15051505
const parsedProp = parsePropertySchema(name, prop, parentPaths, schemas)
15061506

1507+
if (name.startsWith('ext_')) {
1508+
throw new Error(
1509+
`Property cannot start with ext_ : ${parentPaths.join('.')}.${name}`,
1510+
)
1511+
}
1512+
15071513
const propertyGroupKey = parsedProp['x-property-group-key'] as string
15081514
validateGroupKey(propertyGroupKey, name, parentPaths, propertyGroups)
15091515

0 commit comments

Comments
 (0)