dbt-metricflow-sql 0.5.0__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/PKG-INFO +2 -2
  2. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/README.md +4 -1
  3. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/pyproject.toml +4 -3
  4. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/cli.py +25 -17
  5. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/client.py +20 -5
  6. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/fragment.schema.json +347 -0
  7. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/llms-full.txt +794 -17
  8. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/plugin.py +133 -9
  9. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/semantics.py +101 -48
  10. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/sl_config.py +66 -5
  11. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/uv.lock +68 -27
  12. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/.gitignore +0 -0
  13. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/LICENSE +0 -0
  14. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/PYPI.md +0 -0
  15. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/__init__.py +0 -0
  16. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/dependencies.py +0 -0
  17. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/docs.py +0 -0
  18. {dbt_metricflow_sql-0.5.0 → dbt_metricflow_sql-0.5.2}/src/dbt_metricflow_sql/server.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: dbt-metricflow-sql
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: dbt v1 plugin for MetricFlow
5
5
  Project-URL: Documentation, https://docs-internal-git-mfsql-dbt-labs.vercel.app/metricflow
6
6
  License-Expression: LicenseRef-Fivetran
@@ -10,7 +10,7 @@ Requires-Python: >=3.9
10
10
  Requires-Dist: dbt-core>=1.9
11
11
  Requires-Dist: jsonschema>=4.19
12
12
  Provides-Extra: sidecar
13
- Requires-Dist: metricflow-sql-sidecar; extra == 'sidecar'
13
+ Requires-Dist: metricflow-sql-sidecar==0.5.2; extra == 'sidecar'
14
14
  Description-Content-Type: text/markdown
15
15
 
16
16
  # dbt-metricflow-sql
@@ -258,7 +258,10 @@ dbtsl publish --target prod --vars '{metricflow_publish_profile: prod}' # crea
258
258
 
259
259
  - `profiles`, `logins`, `mappings` and `grants` `list`, `create` and `delete`; profiles and
260
260
  logins also `get` and `update`, keeping the fields not given. `environments` `list`,
261
- `set-default` and `delete` the Semantic Layer's. Anything is named by its name or its id.
261
+ `set-default` and `delete` the Semantic Layer's, and `link` dbt Cloud environments to one
262
+ (`--dbt-environment ID`, repeatable) or `unlink` them: a dbt Cloud job publishes, with no
263
+ configuration, to the environment its dbt environment is linked to. Anything is named by its
264
+ name or its id.
262
265
  - `create --if-missing` returns the one with the same name, or group or token and login, instead
263
266
  of failing, so a script can run it again.
264
267
  - dbt Cloud checks the fields, and its errors are reported per field. Secrets come only from
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "dbt-metricflow-sql"
3
3
  # A placeholder: a release sets its tag's version, with scripts/set_version.py.
4
- version = "0.5.0"
4
+ version = "0.5.2"
5
5
  description = "dbt v1 plugin for MetricFlow"
6
6
  # Its PyPI page: README.md is for this repository.
7
7
  readme = "PYPI.md"
@@ -23,8 +23,9 @@ dbtsl = "dbt_metricflow_sql.cli:main"
23
23
 
24
24
  [project.optional-dependencies]
25
25
  # The MetricFlow server it runs by default, which needs no Python of its own: only projects with
26
- # MetricFlow models run one.
27
- sidecar = ["metricflow-sql-sidecar"]
26
+ # MetricFlow models run one. Pinned to this release's own version, which scripts/set_version.py
27
+ # sets, so upgrading the plugin upgrades its server too: unpinned, pip keeps whichever is installed.
28
+ sidecar = ["metricflow-sql-sidecar==0.5.2"]
28
29
 
29
30
  [project.urls]
30
31
  Documentation = "https://docs-internal-git-mfsql-dbt-labs.vercel.app/metricflow"
@@ -18,7 +18,10 @@
18
18
  Each of the last four reads the server and environment the project publishes to, with the same
19
19
  vars and token, the environment naming the Trino catalog: it loads the project's and profile's
20
20
  config, with the dbt arguments it's given, e.g. `--target prod`, without parsing the project, so
21
- nothing else in the project, e.g. a model that doesn't parse, can fail it. Queries run on the
21
+ nothing else in the project, e.g. a model that doesn't parse, can fail it. Without a profile, as
22
+ dbt Cloud's CLI's users have none, it loads the project's config alone: it then reads the
23
+ server's default environment unless the `metricflow_publish_env` var names one, its SQL in the
24
+ server's default dialect unless `--dialect` names one. Queries run on the
22
25
  server, over Trino's protocol, and so does `explain`, as `EXPLAIN <query>`, their SQL read in the
23
26
  target's dialect, e.g. BigQuery's, as a MetricFlow model's is, or in the one `--dialect` names,
24
27
  e.g. `--dialect trino`. With `--local`, it
@@ -324,10 +327,10 @@ class _LocalReader:
324
327
  def _remote_reader(dbt_args: Sequence[str], dialect: str | None = None) -> _RemoteReader | None:
325
328
  """
326
329
  The reader of the server the project publishes to, from its config alone (see
327
- `_load_config`), or None, reporting why, if it can't find the server.
330
+ `_load_project_config`), or None, reporting why, if it can't find the server.
328
331
  """
329
332
  try:
330
- return _RemoteReader(plugin.semantic_layer(_load_config(dbt_args)), dialect)
333
+ return _RemoteReader(plugin.semantic_layer(_load_project_config(dbt_args)), dialect)
331
334
  except click.ClickException as error:
332
335
  # dbt's own option's, e.g. `--vars` that isn't YAML.
333
336
  print(error.format_message(), file=sys.stderr)
@@ -339,25 +342,18 @@ def _remote_reader(dbt_args: Sequence[str], dialect: str | None = None) -> _Remo
339
342
  return None
340
343
 
341
344
 
342
- def _load_config(dbt_args: Sequence[str]) -> RuntimeConfig:
343
- """
344
- The project's and profile's config, as `dbt parse` with `dbt_args` would load it, without
345
- parsing the project (see `_preflight`).
346
- """
347
- return RuntimeConfig.from_args(_preflight(dbt_args))
348
-
349
-
350
345
  def _load_project_config(dbt_args: Sequence[str]) -> Project:
351
346
  """
352
- The project's and profile's config (see `_load_config`), else, with no profile named as the
353
- project's, the project's alone, without a target.
347
+ The project's and profile's config, as `dbt parse` with `dbt_args` would load it, without
348
+ parsing the project (see `_preflight`); else, with no profile named as the project's, the
349
+ project's alone, without a target.
354
350
  """
355
351
  flags = _preflight(dbt_args)
356
352
  try:
357
353
  return RuntimeConfig.from_args(flags)
358
354
  except DbtProjectError:
359
- # dbt Cloud's CLI's users have no `profiles.yml`, and `dbtsl config` needs no
360
- # credentials. A project that's itself invalid fails here again.
355
+ # dbt Cloud's CLI's users have no `profiles.yml`, and neither `dbtsl config` nor reading
356
+ # the server needs credentials. A project that's itself invalid fails here again.
361
357
  profile = UnsetProfile() # type: ignore[no-untyped-call]
362
358
  return load_project(flags.PROJECT_DIR, bool(flags.VERSION_CHECK), profile, flags.VARS)
363
359
 
@@ -456,9 +452,21 @@ def _compiled_sql(result: QueryResult) -> str:
456
452
 
457
453
  def _print_hits(hits: Sequence[client.SearchHit]) -> None:
458
454
  rows = [
459
- (hit.id, " > ".join(hit.section), _shorten(hit.text, _SEARCH_TEXT_WIDTH)) for hit in hits
455
+ (
456
+ hit.id,
457
+ hit.type or "",
458
+ hit.label or "",
459
+ " > ".join(hit.section),
460
+ _shorten(hit.text or "", _SEARCH_TEXT_WIDTH),
461
+ )
462
+ for hit in hits
460
463
  ]
461
- _print_table(("id", "section", "text"), rows, (False, False, False), count_label="result")
464
+ _print_table(
465
+ ("id", "type", "label", "section", "text"),
466
+ rows,
467
+ (False, False, False, False, False),
468
+ count_label="result",
469
+ )
462
470
 
463
471
 
464
472
  def _shorten(text: str, width: int) -> str:
@@ -132,10 +132,17 @@ class SearchHit:
132
132
 
133
133
  # The object's id, e.g. `p:homepage`, to look it up by.
134
134
  id: str
135
- # The chunk's heading trail within the object, e.g. `("Sales", "Metrics")`.
136
- section: tuple[str, ...]
137
- text: str
135
+ # The object's type, e.g. `Metric`, label, description, and `parent`, the id of the table it
136
+ # lives on. Servers before these fields send none of them.
137
+ type: str | None
138
+ label: str | None
139
+ description: str | None
140
+ parent: str | None
138
141
  score: float
142
+ # A page's matching passage and its heading trail within the page, e.g. `("Sales", "Metrics")`.
143
+ # Servers send them only for pages, and earlier ones for every object.
144
+ section: tuple[str, ...] = ()
145
+ text: str | None = None
139
146
 
140
147
 
141
148
  def search(
@@ -147,14 +154,22 @@ def search(
147
154
  return tuple(
148
155
  SearchHit(
149
156
  id=str(hit["id"]),
150
- section=tuple(str(heading) for heading in hit.get("section", [])),
151
- text=str(hit["text"]),
157
+ type=_optional_str(hit.get("type")),
158
+ label=_optional_str(hit.get("label")),
159
+ description=_optional_str(hit.get("description")),
160
+ parent=_optional_str(hit.get("parent")),
152
161
  score=float(hit.get("score", 0.0)),
162
+ section=tuple(str(heading) for heading in hit.get("section", [])),
163
+ text=_optional_str(hit.get("text")),
153
164
  )
154
165
  for hit in response["results"]
155
166
  )
156
167
 
157
168
 
169
+ def _optional_str(value: Any) -> str | None:
170
+ return None if value is None else str(value)
171
+
172
+
158
173
  def get_objects(
159
174
  url: str, ids: Sequence[str], headers: Mapping[str, str] | None = None
160
175
  ) -> dict[str, Any]:
@@ -95,6 +95,34 @@
95
95
  "name": {
96
96
  "description": "The name, unique among its collection's.",
97
97
  "type": "string"
98
+ },
99
+ "permissions": {
100
+ "anyOf": [
101
+ {
102
+ "items": {
103
+ "$ref": "#/$defs/Permission"
104
+ },
105
+ "minItems": 1,
106
+ "type": "array"
107
+ },
108
+ {
109
+ "type": "null"
110
+ }
111
+ ],
112
+ "default": null,
113
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
114
+ },
115
+ "policy": {
116
+ "anyOf": [
117
+ {
118
+ "type": "string"
119
+ },
120
+ {
121
+ "type": "null"
122
+ }
123
+ ],
124
+ "default": null,
125
+ "description": "The name of a policy whose permissions it has, instead of its own."
98
126
  }
99
127
  },
100
128
  "required": [
@@ -153,6 +181,34 @@
153
181
  "name": {
154
182
  "description": "The name, unique among its collection's.",
155
183
  "type": "string"
184
+ },
185
+ "permissions": {
186
+ "anyOf": [
187
+ {
188
+ "items": {
189
+ "$ref": "#/$defs/Permission"
190
+ },
191
+ "minItems": 1,
192
+ "type": "array"
193
+ },
194
+ {
195
+ "type": "null"
196
+ }
197
+ ],
198
+ "default": null,
199
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
200
+ },
201
+ "policy": {
202
+ "anyOf": [
203
+ {
204
+ "type": "string"
205
+ },
206
+ {
207
+ "type": "null"
208
+ }
209
+ ],
210
+ "default": null,
211
+ "description": "The name of a policy whose permissions it has, instead of its own."
156
212
  }
157
213
  },
158
214
  "required": [
@@ -207,6 +263,34 @@
207
263
  "name": {
208
264
  "description": "The name, unique among its collection's.",
209
265
  "type": "string"
266
+ },
267
+ "permissions": {
268
+ "anyOf": [
269
+ {
270
+ "items": {
271
+ "$ref": "#/$defs/Permission"
272
+ },
273
+ "minItems": 1,
274
+ "type": "array"
275
+ },
276
+ {
277
+ "type": "null"
278
+ }
279
+ ],
280
+ "default": null,
281
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
282
+ },
283
+ "policy": {
284
+ "anyOf": [
285
+ {
286
+ "type": "string"
287
+ },
288
+ {
289
+ "type": "null"
290
+ }
291
+ ],
292
+ "default": null,
293
+ "description": "The name of a policy whose permissions it has, instead of its own."
210
294
  }
211
295
  },
212
296
  "required": [
@@ -273,6 +357,34 @@
273
357
  "description": "The name, unique among its collection's.",
274
358
  "type": "string"
275
359
  },
360
+ "permissions": {
361
+ "anyOf": [
362
+ {
363
+ "items": {
364
+ "$ref": "#/$defs/Permission"
365
+ },
366
+ "minItems": 1,
367
+ "type": "array"
368
+ },
369
+ {
370
+ "type": "null"
371
+ }
372
+ ],
373
+ "default": null,
374
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
375
+ },
376
+ "policy": {
377
+ "anyOf": [
378
+ {
379
+ "type": "string"
380
+ },
381
+ {
382
+ "type": "null"
383
+ }
384
+ ],
385
+ "default": null,
386
+ "description": "The name of a policy whose permissions it has, instead of its own."
387
+ },
276
388
  "roles": {
277
389
  "default": [],
278
390
  "description": "Roles of the constellation.",
@@ -353,6 +465,34 @@
353
465
  },
354
466
  "type": "array"
355
467
  },
468
+ "permissions": {
469
+ "anyOf": [
470
+ {
471
+ "items": {
472
+ "$ref": "#/$defs/Permission"
473
+ },
474
+ "minItems": 1,
475
+ "type": "array"
476
+ },
477
+ {
478
+ "type": "null"
479
+ }
480
+ ],
481
+ "default": null,
482
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
483
+ },
484
+ "policy": {
485
+ "anyOf": [
486
+ {
487
+ "type": "string"
488
+ },
489
+ {
490
+ "type": "null"
491
+ }
492
+ ],
493
+ "default": null,
494
+ "description": "The name of a policy whose permissions it has, instead of its own."
495
+ },
356
496
  "relationships": {
357
497
  "default": [],
358
498
  "description": "References to entities and datasets.",
@@ -505,6 +645,34 @@
505
645
  "description": "The name, unique among its collection's.",
506
646
  "type": "string"
507
647
  },
648
+ "permissions": {
649
+ "anyOf": [
650
+ {
651
+ "items": {
652
+ "$ref": "#/$defs/Permission"
653
+ },
654
+ "minItems": 1,
655
+ "type": "array"
656
+ },
657
+ {
658
+ "type": "null"
659
+ }
660
+ ],
661
+ "default": null,
662
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
663
+ },
664
+ "policy": {
665
+ "anyOf": [
666
+ {
667
+ "type": "string"
668
+ },
669
+ {
670
+ "type": "null"
671
+ }
672
+ ],
673
+ "default": null,
674
+ "description": "The name of a policy whose permissions it has, instead of its own."
675
+ },
508
676
  "sources": {
509
677
  "default": [],
510
678
  "description": "Datasets implementing the entity's key.",
@@ -649,6 +817,14 @@
649
817
  },
650
818
  "type": "array"
651
819
  },
820
+ "policies": {
821
+ "default": [],
822
+ "description": "Permissions reused by name, by any fragment of the bundle.",
823
+ "items": {
824
+ "$ref": "#/$defs/Policy"
825
+ },
826
+ "type": "array"
827
+ },
652
828
  "schema_version": {
653
829
  "enum": [
654
830
  "v1"
@@ -885,6 +1061,34 @@
885
1061
  "name": {
886
1062
  "description": "The name, unique among its collection's.",
887
1063
  "type": "string"
1064
+ },
1065
+ "permissions": {
1066
+ "anyOf": [
1067
+ {
1068
+ "items": {
1069
+ "$ref": "#/$defs/Permission"
1070
+ },
1071
+ "minItems": 1,
1072
+ "type": "array"
1073
+ },
1074
+ {
1075
+ "type": "null"
1076
+ }
1077
+ ],
1078
+ "default": null,
1079
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
1080
+ },
1081
+ "policy": {
1082
+ "anyOf": [
1083
+ {
1084
+ "type": "string"
1085
+ },
1086
+ {
1087
+ "type": "null"
1088
+ }
1089
+ ],
1090
+ "default": null,
1091
+ "description": "The name of a policy whose permissions it has, instead of its own."
888
1092
  }
889
1093
  },
890
1094
  "required": [
@@ -1008,6 +1212,93 @@
1008
1212
  "title": "Parameter",
1009
1213
  "type": "object"
1010
1214
  },
1215
+ "Permission": {
1216
+ "additionalProperties": false,
1217
+ "description": "Who can use an object or field, and for them, what's filtered or masked.",
1218
+ "properties": {
1219
+ "groups": {
1220
+ "description": "dbt platform groups that can use it, or `*` for everyone.",
1221
+ "items": {
1222
+ "type": "string"
1223
+ },
1224
+ "minItems": 1,
1225
+ "type": "array"
1226
+ },
1227
+ "having": {
1228
+ "anyOf": [
1229
+ {
1230
+ "type": "string"
1231
+ },
1232
+ {
1233
+ "type": "null"
1234
+ }
1235
+ ],
1236
+ "default": null,
1237
+ "description": "A SQL condition over aggregates that the groups' aggregated results must pass. Only for datasets, entities and constellations."
1238
+ },
1239
+ "mask": {
1240
+ "anyOf": [
1241
+ {
1242
+ "type": "string"
1243
+ },
1244
+ {
1245
+ "type": "null"
1246
+ }
1247
+ ],
1248
+ "default": null,
1249
+ "description": "A SQL expression the groups see instead of a field's value, reading the field for its own value. Not for relationships."
1250
+ },
1251
+ "meta": {
1252
+ "default": {},
1253
+ "type": "object"
1254
+ },
1255
+ "where": {
1256
+ "anyOf": [
1257
+ {
1258
+ "type": "string"
1259
+ },
1260
+ {
1261
+ "type": "null"
1262
+ }
1263
+ ],
1264
+ "default": null,
1265
+ "description": "A SQL condition the rows the groups see must pass. Only for datasets, entities and constellations."
1266
+ }
1267
+ },
1268
+ "required": [
1269
+ "groups"
1270
+ ],
1271
+ "title": "Permission",
1272
+ "type": "object"
1273
+ },
1274
+ "Policy": {
1275
+ "additionalProperties": false,
1276
+ "description": "Permissions that objects and fields reuse by name.",
1277
+ "properties": {
1278
+ "meta": {
1279
+ "default": {},
1280
+ "type": "object"
1281
+ },
1282
+ "name": {
1283
+ "description": "The name, unique within the bundle.",
1284
+ "type": "string"
1285
+ },
1286
+ "permissions": {
1287
+ "description": "The permissions.",
1288
+ "items": {
1289
+ "$ref": "#/$defs/Permission"
1290
+ },
1291
+ "minItems": 1,
1292
+ "type": "array"
1293
+ }
1294
+ },
1295
+ "required": [
1296
+ "name",
1297
+ "permissions"
1298
+ ],
1299
+ "title": "Policy",
1300
+ "type": "object"
1301
+ },
1011
1302
  "Relationship": {
1012
1303
  "additionalProperties": false,
1013
1304
  "description": "A relationship to an entity or a dataset, its target.\n\nA key binding all of the target's key is many-to-one, and any other is\none-to-many.",
@@ -1065,6 +1356,34 @@
1065
1356
  "description": "The name, unique among its collection's.",
1066
1357
  "type": "string"
1067
1358
  },
1359
+ "permissions": {
1360
+ "anyOf": [
1361
+ {
1362
+ "items": {
1363
+ "$ref": "#/$defs/Permission"
1364
+ },
1365
+ "minItems": 1,
1366
+ "type": "array"
1367
+ },
1368
+ {
1369
+ "type": "null"
1370
+ }
1371
+ ],
1372
+ "default": null,
1373
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
1374
+ },
1375
+ "policy": {
1376
+ "anyOf": [
1377
+ {
1378
+ "type": "string"
1379
+ },
1380
+ {
1381
+ "type": "null"
1382
+ }
1383
+ ],
1384
+ "default": null,
1385
+ "description": "The name of a policy whose permissions it has, instead of its own."
1386
+ },
1068
1387
  "target": {
1069
1388
  "description": "The name of the related entity or dataset. An entity is looked up first, then a dataset.",
1070
1389
  "type": "string"
@@ -1146,6 +1465,34 @@
1146
1465
  "name": {
1147
1466
  "description": "The name, unique among its collection's.",
1148
1467
  "type": "string"
1468
+ },
1469
+ "permissions": {
1470
+ "anyOf": [
1471
+ {
1472
+ "items": {
1473
+ "$ref": "#/$defs/Permission"
1474
+ },
1475
+ "minItems": 1,
1476
+ "type": "array"
1477
+ },
1478
+ {
1479
+ "type": "null"
1480
+ }
1481
+ ],
1482
+ "default": null,
1483
+ "description": "Who can use it, checked in order: the first that lists any of a caller's groups applies. If left null, whoever can use what it reads can use it."
1484
+ },
1485
+ "policy": {
1486
+ "anyOf": [
1487
+ {
1488
+ "type": "string"
1489
+ },
1490
+ {
1491
+ "type": "null"
1492
+ }
1493
+ ],
1494
+ "default": null,
1495
+ "description": "The name of a policy whose permissions it has, instead of its own."
1149
1496
  }
1150
1497
  },
1151
1498
  "required": [