Browse Source

Use descriptor JSON wording in low-code schemas

pull/25601/head
SALİH ÖZKARA 3 months ago
parent
commit
26cc9978d1
  1. 2
      schemas/low-code/definitions/dashboard-aggregation-type.schema.json
  2. 2
      schemas/low-code/definitions/dashboard-chart-type.schema.json
  3. 2
      schemas/low-code/definitions/dashboard-visualization-type.schema.json
  4. 2
      schemas/low-code/definitions/entity-property-descriptor.schema.json
  5. 2
      schemas/low-code/definitions/enum-descriptor.schema.json
  6. 2
      schemas/low-code/definitions/page-type.schema.json
  7. 2
      schemas/low-code/definitions/validator-descriptor.schema.json

2
schemas/low-code/definitions/dashboard-aggregation-type.schema.json

@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "dashboard-aggregation-type.schema.json",
"title": "DashboardAggregationType",
"description": "The type of aggregation to perform. Prefer lower-case values in model JSON; PascalCase aliases are accepted for compatibility.",
"description": "The type of aggregation to perform. Prefer lower-case values in descriptor JSON; PascalCase aliases are accepted for compatibility.",
"markdownDescription": "`count` counts records and does not require a property. `sum`, `average`, `min`, and `max` require a property. `percentFilled` and `percentEmpty` calculate completeness for a nullable/string property.",
"type": "string",
"enum": [

2
schemas/low-code/definitions/dashboard-chart-type.schema.json

@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "dashboard-chart-type.schema.json",
"title": "DashboardChartType",
"description": "The type of chart. Prefer lower-case values in model JSON; PascalCase aliases are accepted for compatibility.",
"description": "The type of chart. Prefer lower-case values in descriptor JSON; PascalCase aliases are accepted for compatibility.",
"markdownDescription": "Use `bar` for categorical comparisons, `line` for trends over time, `pie`/`donut` for part-of-whole views with a small number of categories.",
"type": "string",
"enum": ["bar", "Bar", "line", "Line", "pie", "Pie", "donut", "Donut"],

2
schemas/low-code/definitions/dashboard-visualization-type.schema.json

@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "dashboard-visualization-type.schema.json",
"title": "DashboardVisualizationType",
"description": "The type of dashboard visualization. Prefer lower-case values in model JSON; PascalCase aliases are accepted for compatibility.",
"description": "The type of dashboard visualization. Prefer lower-case values in descriptor JSON; PascalCase aliases are accepted for compatibility.",
"markdownDescription": "`chart` groups/aggregates entity data into a bar/line/pie/donut chart. `list` displays recent/top records from one entity. `numberContainer` displays one or more KPI number tiles, each with its own entity and aggregation.",
"type": "string",
"enum": ["chart", "Chart", "list", "List", "numberContainer", "NumberContainer"],

2
schemas/low-code/definitions/entity-property-descriptor.schema.json

@ -38,7 +38,7 @@
},
"defaultValue": {
"type": ["string", "null"],
"description": "Default value for new records. Stored as a string in model JSON and converted to the declared property type at runtime. Examples: '0' for int/enum, 'true' for boolean, '2026-05-18T09:00:00Z' for datetime."
"description": "Default value for new records. Stored as a string in descriptor JSON and converted to the declared property type at runtime. Examples: '0' for int/enum, 'true' for boolean, '2026-05-18T09:00:00Z' for datetime."
},
"isUnique": {
"type": "boolean",

2
schemas/low-code/definitions/enum-descriptor.schema.json

@ -27,7 +27,7 @@
},
"value": {
"type": "integer",
"description": "Stable integer value. Prefer explicit values starting at 0 so generated model JSON is deterministic."
"description": "Stable integer value. Prefer explicit values starting at 0 so generated descriptor JSON is deterministic."
}
},
"required": [

2
schemas/low-code/definitions/page-type.schema.json

@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "page-type.schema.json",
"title": "PageType",
"description": "The runtime page renderer to use. Prefer lower-case values in model JSON; PascalCase aliases are accepted for compatibility.",
"description": "The runtime page renderer to use. Prefer lower-case values in descriptor JSON; PascalCase aliases are accepted for compatibility.",
"markdownDescription": "`dataGrid` renders searchable/filterable tabular CRUD for an entity. `kanban` renders grouped cards and requires `groupByProperty`. `calendar` renders entity records on a calendar and requires `calendarStartProperty`. `gallery` renders visual cards and may use `galleryImageProperty`. `form` renders a standalone create/edit form page and requires `formName`. `dashboard` renders dashboard rows/visualizations and requires `dashboard`.",
"type": "string",
"enum": [

2
schemas/low-code/definitions/validator-descriptor.schema.json

@ -9,7 +9,7 @@
"properties": {
"type": {
"type": "string",
"description": "Validator type. Prefer lower-case values in model JSON; PascalCase aliases are accepted for compatibility.",
"description": "Validator type. Prefer lower-case values in descriptor JSON; PascalCase aliases are accepted for compatibility.",
"enum": [
"required",
"Required",

Loading…
Cancel
Save