Skip to content

Commit e6c1e0e

Browse files
authored
🐛 fix(shortcodes): ensure schema path is lowercase (#2862)
- apply lowercase filter to schema path to prevent case sensitivity issues - improve compatibility with file systems that are case sensitive
2 parents 0184c62 + 81ecffb commit e6c1e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/layouts/_shortcodes/class-schema.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{ end }}
2323

2424
{{/* Load the schema file from the /static/schema directory */}}
25-
{{ $schemaPath := printf "static/schema/schema.%s.%s.json" $data.typeName $data.className }}
25+
{{ $schemaPath := printf "static/schema/schema.%s.%s.json" $data.typeName $data.className | lower }}
2626
{{ $schemaContent := readFile $schemaPath }}
2727

2828
{{ if $schemaContent }}

0 commit comments

Comments
 (0)