feat: allow to write to notes

This commit is contained in:
Max Richter
2025-10-31 14:16:32 +01:00
parent dc2cd1108e
commit 814be43be8
7 changed files with 104 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ func RenderFile(rawJSON []byte) ([]byte, error) {
}
// 5) validate JSON against schema
if schemaName, ok := data["@schema"].(string); ok {
if schemaName, ok := data["_schema"].(string); ok {
if validationErr := validator.ValidateSchema(data, schemaName); validationErr != nil {
return nil, fmt.Errorf("failed to validate schema: %w", validationErr)
}