This commit is contained in:
Max Richter
2025-09-25 16:41:26 +02:00
parent 3f0d25f935
commit b13d5015f4
75 changed files with 3881 additions and 141 deletions

View File

@@ -1,6 +1,6 @@
module git.max-richter.dev/max/marka/validator
go 1.25.1
go 1.24.7
require (
git.max-richter.dev/max/marka/registry v0.0.0-20250819170608-69c2550f448e

View File

@@ -8,7 +8,7 @@ import (
func TestValidateRecipe_InvalidType(t *testing.T) {
recipe := map[string]any{
"@type": "Recipe",
"_type": "Recipe",
"recipeYield": 4,
"recipeIngredient": []string{
"500 g flour",
@@ -24,7 +24,7 @@ func TestValidateRecipe_InvalidType(t *testing.T) {
func TestValidateRecipe_Valid(t *testing.T) {
recipe := map[string]any{
"@type": "Recipe",
"_type": "Recipe",
"name": "Simple Bread",
"cookTime": "PT30M",
"recipeIngredient": []any{"500 g flour", "300 ml water", "10 g salt", "3 g yeast"},