Граф коммитов

30 Коммитов

Автор SHA1 Сообщение Дата
Jan-Erik Rediger 7702542911 BigQuery: Convert `json` atoms to a JSON column type if configured in `mozPipelineMetadata`
This allows the `object` metric type to become a JSON column in
BigQuery.

This is the _only_ place where jsonschema-transpiler uses
schema metadata specific to Mozilla for generating BigQuery schemas.

It's added to the context after parsing the schema into an AST.
This _could_ be a CLI parameter instead, but due to how
jsonschema-transpiler is used it is easier for us to pass that
information as configuration within the schema itself.
It's still generic enough that we could extend it to other fields in the
future if needed.
2024-02-07 13:36:23 +01:00
Jan-Erik Rediger cc21fb8fe4 Allow test files to configure context used in BigQuery tests 2024-02-07 13:36:23 +01:00
Jan-Erik Rediger f3aff38d9f cargo clippy --fix 2023-05-09 17:25:32 +02:00
Anthony Miyaguchi 708689f4ea Add test cases for casing and move cases for translating schemas 2019-07-15 14:14:22 -07:00
Anthony Miyaguchi c577171dfe Add `--normalize-case` and implement Default for Context 2019-07-08 17:03:10 -07:00
Anthony Miyaguchi c2287c2c3a Categorize each test as compatible and test for panics 2019-06-26 16:48:56 -07:00
Anthony Miyaguchi 951daeff98 Make context required 2019-06-25 11:31:19 -07:00
Anthony Miyaguchi 7d027c3b8c Update autogenerated tests to format correctly 2019-06-24 17:19:22 -07:00
Anthony Miyaguchi dcb9872d48 Update tests to cast on incompatible schemas 2019-06-24 16:29:46 -07:00
Anthony Miyaguchi c007772c26 Add context inside of tests 2019-06-14 15:25:38 -07:00
Frank Bertsch 2ce14fcc47 Fix lint 2019-05-03 10:29:47 -05:00
Frank Bertsch 1c97dece47 Ignore hidden test resource files 2019-05-03 10:23:23 -05:00
Daniel Thorn d1796c173c
Refactor scripts/format-tests.py into build.rs
Fixes #53
2019-04-26 16:34:38 -07:00
Anthony Miyaguchi 34d1a4943b Add avro to the generated test suite 2019-04-22 16:47:44 -07:00
Anthony Miyaguchi 33556d2839 Modify tests to include defaults for avro
This actually increases the number of failing tests because of modifications to
the json formatting. The test suite needs another look over to ensure that the
cases are valid.
2019-03-25 12:52:13 -07:00
Anthony Miyaguchi 4c60c03e6e Specify version numbers in cargo manifest 2019-02-13 16:18:12 -08:00
Anthony Miyaguchi a3e2eb7357 Rename `converter` to `jst` 2019-02-11 17:31:37 -08:00
Anthony Miyaguchi c1c8bfecbc Rename autogenerated tests to `transpile_*` 2019-02-11 17:25:07 -08:00
Anthony Miyaguchi b2853002ba Remove unused code and rename main conversion method 2019-02-01 16:47:23 -08:00
Anthony Miyaguchi 61e2bb6694 Remove avro conversion for refactor 2019-02-01 16:36:21 -08:00
Anthony Miyaguchi 2dd57ad376 Refactor generated tests into a single file 2019-01-30 15:43:57 -08:00
Anthony Miyaguchi ecf5033b52 Pass 3 of the initial tests 2019-01-23 16:37:11 -08:00
Anthony Miyaguchi afc3edb982 Fixed typo from pasting 2019-01-22 16:49:44 -08:00
Anthony Miyaguchi dfd7c1d147 Add stubs for bigquery tests 2019-01-22 16:46:25 -08:00
Anthony Miyaguchi eb648154ec Namespace tests with avro 2019-01-22 15:50:02 -08:00
Anthony Miyaguchi 7d3ec35131 Match based on type 2019-01-22 11:38:16 -08:00
Anthony Miyaguchi fa07542abe Fix indentation of generated tests 2019-01-17 17:18:50 -08:00
Anthony Miyaguchi 2d6f8ac45a Update test schema 2019-01-17 13:39:42 -08:00
Anthony Miyaguchi 506b604f64 Update project with failing tests 2019-01-16 14:35:27 -08:00
Anthony Miyaguchi 4b73a93840 Add test generator from json files 2019-01-16 13:35:59 -08:00