data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

Serialization/Deserialization of Wildcard properties

Open RubenCerna2079 opened this issue 2 months ago • 0 comments

Need to create the new properties from Wildcard inside of the schema. The format is as following:

{
  "autoentities": {
    "{definition-name}": {

      "patterns": {
        "include": "%.%", // default: null. mssql syntax (T-SQL LIKE)
        "exclude": "sales.%", // default: null. mssql syntax (T-SQL LIKE)
        "name": "{schema}{object}" // default: null. interpolation syntax (must be unique)
      },

      "template": {
        "mcp": { "dml-tool": "<boolean>" }, // default: true
        "rest": { "enabled": "<boolean>" }, // default: true
        "graphql": { "enabled": "<boolean>" }, // default: true
        "health": { "enabled": "<boolean>" }, // default: true
        "cache": {
          "enabled": "<boolean>", // default: false
          "ttl-seconds": "<integer>", // default: null
          "level": "<enum>" // default: null
        }
      },

      "permissions": [ // at least one is required
        {
          "role": "<string>",
          "actions": [
            "*",
            "create",
            "read",
            "update",
            "delete"
          ]
        }
      ]
    }
  }
}

RubenCerna2079 avatar Nov 10 '25 16:11 RubenCerna2079