------------------
Command-line inputs can now be `concatenated JSON <https://en.wikipedia.org/wiki/JSON_streaming#Concatenated_JSON>`__ or JSON arrays, not only `line-delimited JSON <https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON>`__.
Added
~~~~~
New CLI commands:
- :ref:`detect-format`
New CLI options:
- :ref:`package-releases`:
- ``--uri``
- ``--published-date``
- ``--publisher-name``
- ``--publisher-uri``
- ``--publisher-scheme``
- ``--publisher-uid``
- :ref:`compile`:
- ``--publisher-name``
- ``--publisher-uri``
- ``--publisher-scheme``
- ``--publisher-uid``
- :ref:`combine-record-packages`:
- ``--publisher-name``
- ``--publisher-uri``
- ``--publisher-scheme``
- ``--publisher-uid``
- :ref:`combine-release-packages`:
- ``--publisher-name``
- ``--publisher-uri``
- ``--publisher-scheme``
- ``--publisher-uid``
- :ref:`mapping-sheet`:
- ``--order-by``
- ``--infer-required``
- ``--extension``
- ``--extension-field``
The ``--root-path`` option is added to all OCDS commands.
New library methods:
- :func:`ocdskit.combine.package_releases`
- :func:`ocdskit.combine.combine_record_packages`
- :func:`ocdskit.combine.combine_release_packages`
- :func:`ocdskit.combine.compile_release_packages`
- :func:`ocdskit.mapping_sheet.mapping_sheet`
- :func:`ocdskit.schema.get_schema_fields`
Changed
~~~~~~~
- **Backwards-incompatible**: :func:`ocdskit.upgrade.upgrade_10_10`, :func:`ocdskit.upgrade.upgrade_11_11` and :func:`ocdskit.upgrade.upgrade_10_11` now return data, instead of only editing in-place.
- **Backwards-incompatible**: :ref:`mapping-sheet` and :ref:`schema-report` now read a file argument instead of standard input, to support schema that ``$ref`` other schema.
- :ref:`mapping-sheet` and :ref:`schema-report` support schema from: Open Contracting for Infrastructure Data Standard (OC4IDS), Beneficial Ownership Data Standard (BODS), and Social Investment Data Lab Specification (SEDL).
- :ref:`mapping-sheet` outputs:
- ``enum`` values of ``items``
- ``enum`` as "Enum:" instead of "Codelist:"
- ``pattern`` as "Pattern:"
- :ref:`schema-strict` adds ``"uniqueItems": true`` to all arrays, unless ``--no-unique-items`` is set.
- Use ``https://`` instead of ``http://`` for ``standard.open-contracting.org``.
Fixed
~~~~~
- :ref:`compile` merges extensions' schema into the release schema before merging releases.
- :ref:`mapping-sheet` fills in the deprecated column if an object field uses ``$ref``.
- :ref:`schema-strict` no longer errors if a required field uses ``$ref``.
- :ref:`upgrade` no longer errors if ``awards`` or ``contracts`` is ``null``.