Libcoveocds

Latest version: v0.17.0

Safety actively analyzes 688587 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

0.12.4

Fixed

- Eliminate `JsonRef` proxies to avoid `AttributeError: 'JsonRef' object has no attribute 'get'` exceptions.

0.12.3

Changed

- Report `json_deref_error` in API context, only if the errors occur. (Added in 0.12.2.)
- Don't attempt to report `invalid_version_data`, as an error is raised from `ocds_json_output()`. (Added in 0.12.2.)
- Cache public methods of `SchemaOCDS`, so that its instances can be cached.

0.12.2

Added

- Report `json_deref_error` and `invalid_version_data` in API context. 109

Changed

- Use OCDS 1.1 if no `version` field. 110

Fixed

- Allow use of translated codelists in extensions (i.e. with `Código` heading). 47
- Calculate additional codelist values for record packages, if using lib-cove125. 106

0.12.1

Fixed

- Fix jsonschema resource for `versioned-release-validation-schema.json`. (Changed in 0.12.0.)

0.12.0

Added

- Add options to `libcoveocds.config.LibCoveOCDSConfig`:
- `standard_zip` (default `None`)
- `additional_checks` (default "all")
- `skip_aggregates` (default `False`) 43
- `context` (default "web")
- Add CLI options:
- `--additional-checks`
- `--skip-aggregates`
- `--standard-zip`

Changed

**BREAKING CHANGES:**

- `libcoveocds.lib.common_checks`:
- Rename `get_bad_ocds_prefixes` to `get_bad_ocid_prefixes`.
- `libcoveocds.schema.SchemaOCDS`:
- Rename `release_data` argument to `package_data`.
- Remove `pkg_schema_name`, `default_version`, `default_schema_host` attributes.
- `libcoveocds.config.LibCoveOCDSConfig`:
- `schema_version_choices` values are 3-tuples (added tag), instead of 2-tuples.
- Remove `schema_name`, `schema_item_name`, `schema_host` keys.
- Install dependencies for the web context with the `libcoveocds[web]` extra.

Other changes:

- `libcoveocds.schema.SchemaOCDS`:
- Raise an error if the `select_version` is invalid in API context.
- Extensions
- Create the record package schema correctly, if extensions present. 112
- Use ocdsextensionregistry to merge extensions. 81
- Cache all requests made by ocdsextensionregistry by default. Set the `REQUESTS_CACHE_EXPIRE_AFTER` environment variable to `0` to expire immediately.
- An extra error message is no longer reported for empty extension URLs. (Already reported as invalid URI.) (0.11.1)
- Merge an extension even if its metadata is missing or invalid.
- Use jsonschema's registry instead of lib-cove's resolver.
- Codelists
- Log at exception level if the request fails for the standard's codelists, instead of failing silently.
- Report all non-existing codes being removed by an extension, not only the last.
- Improve performance in API context.
- Skip the schema description and reference URL for OCID prefix conformance errors.
- Skip the formatted message, schema title, schema description and reference URL for validation errors.
- Skip the metadata fields for OCDS extensions.
- Skip sorting the JSON locations of additional checks.
- Improve ``context_api_transform()`` performance.
- Use orjson if available to load the input data.
- `ocds_json_output` determines `record_pkg`, if not provided.
- CLI validates `--schema-version`.
- flattentool is optional.
- Drop support for Python 3.7.

Fixed

- Catch unresolvable reference errors in jsonschema, in addition to jsonref. 66

Removed

- The deprecated `cache_schema` keyword argument to `ocds_json_output()` and `SchemaOCDS()` is removed. (0.4.0)

0.11.3

Changed

- Drop support for jsonschema 3.x.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.