feat: allow to write to notes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user