Peder Hovdan Andresen

Results 29 issues of Peder Hovdan Andresen

Currently, we only support XML exports, but in the future we should look into adding support for all available formats: From [API docs](https://www.zabbix.com/documentation/7.0/en/manual/api/reference/configuration/export): > Possible values: yaml - YAML; xml...

enhancement

The spec is located [here](https://github.com/goharbor/pluggable-scanner-spec/blob/master/api/spec/scanner-adapter-openapi-v1.2.yaml), while the new [README](https://github.com/goharbor/pluggable-scanner-spec/tree/master?tab=readme-ov-file#scanner-adapter-api) section describes how it works. In general, it's a lot to take in, and we need to find out whether or...

API Spec

These 2 endpoints are missing client methods: - [`/security/vul`](https://github.com/goharbor/harbor/blob/991b2a81747e9b0838d8345b80cc8835d91f684f/api/v2.0/swagger.yaml#L6090) - [`/security/summary`](https://github.com/goharbor/harbor/blob/991b2a81747e9b0838d8345b80cc8835d91f684f/api/v2.0/swagger.yaml#L6055) They use the new models introduced in the `pydantic-v2` branch. Furthermore, it seems like they _may_ be tied to...

enhancement

goharbor/harbor#19543 adds the Permissions API. Method(s) for interacting with it need to be implemented.

enhancement

`datamodel-code-generator` generates `pydantic.Field` attributes with the kwarg `example` which contains a single example value for the field: https://github.com/pederhan/harborapi/blob/705903fabc44c2e381bab55a75e1847a77032b98/harborapi/models/_models.py#L182-L191 However, in Pydantic V2, this is now called `examples`[¹](https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Field) [²](https://docs.pydantic.dev/latest/concepts/fields/#customizing-json-schema) and is...

bug
documentation
API Spec
waiting

When writing the examples for the documentation, I have been saving them locally as separate files. I think it's useful to have code examples in the repository itself. Before I...

documentation

The name `HarborAsyncClient` is technically correct, but is incredibly verbose. As this package is async-first, having `Async` in the class name seems superfluous. While we can't get rid of this...

Pydantic V2 removes support for `__root__` in models. The Pre-release blog post provides 2 different ways to create models with "root" fields. The easiest replacement seems to be [`AnalyzedType`](https://docs.pydantic.dev/blog/pydantic-v2-alpha/#analyzedtype). This...

When a test fails with `pytest_httpserver` due to no handler being found, it's impossible to debug the error in the test output and/or stack trace, because they don't include information...

tests

## Tasks - [x] Add `verify` (#42) - [ ] Add remaining kwargs ---- For maximum compatibility with all the different setups out there, we should expose every `httpx.AsyncClient` constructor...

enhancement