Bedrock Data Automation Blueprint-validator meta schema

Better data automation uses so-called blueprints to identify which fields it should extract. These blueprints are following a specific JSON pattern that AWS validates. If for any reason you are building a wrapper and you need to validate this JSON before you actually send it to AWS, then I created a custom metaschema that does that for you.

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://example.com/schemas/bda-blueprint-friendly.schema.json",
  "title": "BDA Blueprint Meta-Schema (Human Friendly)",
  "type": "object",
  "required": [
    "type",
    "properties",
    "class"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "class": {
      "type": "string"
    },
    "type": {
      "const": "object"
    },
    "definitions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/fieldSchema"
      }
    },
    "properties": {
      "type": "object",
      "minProperties": 1,
      "maxProperties": 100,
      "additionalProperties": {
        "$ref": "#/definitions/fieldSchema"
      }
    }
  },
  "additionalProperties": false,
  "definitions": {
    "fieldSchema": {
      "if": {
        "required": [
          "$ref"
        ]
      },
      "then": {
        "$ref": "#/definitions/referenceField"
      },
      "else": {
        "$ref": "#/definitions/directValueField"
      }
    },
    "referenceField": {
      "title": "Reference Field",
      "type": "object",
      "required": [
        "$ref",
        "instruction"
      ],
      "properties": {
        "$ref": {
          "type": "string"
        },
        "instruction": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "directValueField": {
      "title": "Direct Value Field",
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "object",
            "array",
            "string",
            "number",
            "integer",
            "boolean",
            "null"
          ]
        },
        "instruction": {
          "type": "string",
          "minLength": 1
        },
        "inferenceType": {
          "type": "string",
          "enum": [
            "explicit",
            "implicit"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/fieldSchema"
          }
        },
        "items": {
          "$ref": "#/definitions/fieldSchema"
        },
        "enum": {
          "type": "array"
        },
        "pattern": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "minimum": {
          "type": "number"
        },
        "maximum": {
          "type": "number"
        }
      },
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "object"
              }
            }
          },
          "then": {
            "required": [
              "properties"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "array"
              }
            }
          },
          "then": {
            "required": [
              "items"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "enum": [
                  "string",
                  "number",
                  "integer",
                  "boolean"
                ]
              }
            }
          },
          "then": {
            "required": [
              "instruction",
              "inferenceType"
            ]
          }
        }
      ]
    }
  }
}
Continue ReadingBedrock Data Automation Blueprint-validator meta schema

Program options for a couple at Budapest, 2025 July

Program options for Budapest

  • https://triptobudapest.huI am not really a big fan of bus tours, but to go to a specific area and explore it. I think this provides an amazing service. Haven’t tried it personally.
  • https://budapestrivercruise.com/budapest-dinner-cruiseYou have dinner on a boat while watching Budapest in the evening. Will get you a romantic score point for sure. Very touristy, never seen anyone Hungarian taking any of this, but it does sound amazing.
  • Historical SPAsBudapest is very famous for its historical SPAs.
    • Most famous: Széchenyi Bath — if it’s really hot, spending a day here with a book sounds like an awesome thing to do.
    • Evening option: Rudas Bath — one of them has an outside spa part with an extraordinary view. This is one of my personal favourites.
  • ParksThere are two big parks in Budapest (like the Central Park of Budapest). They are both really nice and if weather is good enough for a walk (maybe early morning or evening if it’s hot), it’s definitely worth it. If weather would be nice, then just spending half a day here with a book, walking and sitting at cafés sounds nice.
  • Tram line #2It’s a bit unusual, but Budapest actually has one of the most beautiful tram lines in the world. Tram line #2 goes on the shore of the Danube and is nice.
  • Castle District / Buda CastleThis is a full district with churches, historical walls and parks. If weather is nice, this is a very nice place to visit.
  • Evening Program
    • Szimpla Kert — the most famous ruin bar we have. Very touristy, I only go there when Christian and Artur are in town 🙂
  • Indoor / Cultural Options
    • Dohány Street Synagogue — famous in Budapest, second biggest synagogue in the world.
    • Saint Stephen’s Basilica — one of the main things when Budapest is talked about.
    • Great Market Hall — if you want to buy souvenirs, go here. It’s more of a market, mainly targets tourists. I spent a lot of time here because it’s next to my alma mater: Corvinus University
    • Parliament — a unique building, all Hungarian kids are taken there around age 12. It’s an iconic place of Budapest.
  • Museums
  • Cafés
    • Gerbeaud — most famous.
    • Ruszwurm — try the Ruszwurm cake, this is the best in the country. (The classical Hungarian pastry, simply called “creamy”, is a cooked egg cream with vanilla mixed with the egg white after cooking. However, the Ruszwurm cream pastry is not mellowed with the egg white but with whipped cream — of course, when cold.)
Continue ReadingProgram options for a couple at Budapest, 2025 July

What to do with a car in 1-2 days near Budapest?

Option 1 – Danube Bend day-trip

This can all be done in a single day; Esztergom is only ~70 min from BP.

  1. Szentendre – stroll the inner city and pop into the Marzipan Museum https://www.tripadvisor.com/Restaurant_Review-g274914-d1103133-Reviews-Marzipan_Museum-Szentendre_Pest_County_Central_Hungary.html
  2. Visegrád Citadel – gorgeous fortress, plus the Danube Bend panorama is next-level https://visitvisegrad.hu/en/sights/citadel https://en.wikipedia.org/wiki/Danube_Bend
  3. Esztergom Basilica – a huge cathedral just up the road https://bazilika-esztergom.hu/en

Option 2 – North side of Lake Balaton

Lake Balaton is the biggest lake in Central Europe. Lots of locals have weekend houses here (I’m here right now!). A full loop is ~210 km by bike.

  • The north shore is known for gastronomy & wine, only 90-120 min from Budapest.
  • Do a wine-tasting with jaw-dropping lake views. My college friend runs this family winery: https://en.eliasbirtok.com/
Continue ReadingWhat to do with a car in 1-2 days near Budapest?