So, in order to do the cleanups, I can use `yq`'s excellent filtering abilities. For example I have a list of verbatim API endpoints like `/token` and `/endpoint/{id}` in `allowed_apis.lst`:

```
yq '(load_str("allowed_apis.lst") | split("\n")) as $l | .paths |= with_entries(select(.key as $k | $l | any_c(. == $k)))' api.yaml > api_cleaned_paths.yaml
```

And similar approach for models, except for `any_c(..)` I have to use `all_c(. != $k)`.

#openapi #yq #yaml #openapigenerator

So, workflow is following:
0. Manually fix the OpenAPI `bundle.yaml` - this was actually something that caused the tool to exit with error...
1. Filter out unwanted APIs with `yq`
2. Run the openapi-generator-cli validator to get the list of unused models/types
3. Use `sed` to parse the list of unused models/types
4. Use `yq` again to filter out the unneeded models.
5. Generate the "minimum" client and models :)

#openapi #sed #yq #openapigenerator

openapi-generator / openapi-generator-cli 小ネタ集 - Qiita

はじめに 現在保守しているプロジェクトで openapi-generator および openapi-generator-cli を使っているので、それらに関わる小ネタをいくつか共有したいと思います。 最新の @openapitools/openapi-generato...

Qiita

Ve verzi 1.4.0 byla vydána aktualizovaná #PHP knihovna pro práci s #PremiumAPI #Raiffeisenbank

Hlavní změnou je že data dříve vracená jako pole jsou nyní vracena jako objekty.

To byl sice původní záměr již přechozích verzí ale nakonec se muselo počkat na aktualizaci použitého #OpenApiGenerator

https://github.com/VitexSoftware/php-vitexsoftware-rbczpremiumapi/releases/tag/v1.4.0

#OpenSource #FinTech #VitexSoftware

Release Release 1.4.0 · VitexSoftware/php-vitexsoftware-rbczpremiumapi

Object deserialization back in game. Full Changelog: 1.3.1...v1.4.0

GitHub
iOSエンジニアがバックエンド入門する - Qiita

動機webサーバー楽しそうRustを学びたいが,サーバーの経験がないからまずは慣れたSwiftで書きたいLLMは次の順番で各領域の技術水準が低・中程度の人間プログラマーを駆逐していきそう(根拠…

Qiita