Releases: orq-ai/bartolo
v0.4.3
Top-level oneOf / anyOf request bodies now expose every branch's properties as flags.
Highlights
- Endpoints whose request body is a discriminated union (e.g.
chunking parseover multiple chunker strategies: token, sentence, recursive, semantic, agentic) now produce a unified flag set covering every strategy's fields. - Required fields are the intersection across branches (a field is only universally required if every branch requires it).
- Properties from earlier branches win on conflict so the discriminator field (e.g.
--strategy) is preserved. allOfmerge from v0.4.0 still applies and now composes withoneOf/anyOfflattening (recursively).
Upgrade
go install github.com/orq-ai/bartolo@v0.4.3
go get github.com/orq-ai/bartolo@v0.4.3 && go mod tidy
bartolo generate openapi.jsonv0.4.2
Add JSON-string fallback flag so every top-level body field is exposed on the CLI.
Highlights
- New
jsonbody field flag type. Used for nested objects, arrays of objects, and polymorphic unions that previously were silently dropped. - Pass any JSON value:
--invoke-options '{"timeout":30}',--documents '[{"id":"a"}]'. deployments invoke(and similar endpoints with rich request bodies) now expose every top-level field including--messages,--prefix-messages,--identity,--thread,--knowledge-filter, and--documents.- Existing typed flags (scalar, nullable, slice, map, enum) are unchanged.
Upgrade
go install github.com/orq-ai/bartolo@v0.4.2
go get github.com/orq-ai/bartolo@v0.4.2 && go mod tidy
bartolo generate openapi.jsonv0.4.1
Add a top-level version subcommand and --version flag.
Highlights
bartolo versionprints the installed generator version.bartolo --versionworks as the conventional alternative.
Helpful when generated code looks unexpectedly stale: check the binary on PATH instead of guessing.
Upgrade
go install github.com/orq-ai/bartolo@v0.4.1
bartolo versionv0.4.0
Merge allOf compositions when extracting body field flags so endpoints whose top-level request schema is allOf: [...] (e.g. chat completions) now expose flags for every merged property.
Highlights
allOfrequest schemas are flattened (recursively) into a synthetic object before flag extraction. Properties from every branch are unioned; required fields are collected across branches; the host schema's properties win on conflict.- Endpoints like
chat create(~25 flags such as--model,--temperature,--metadata,--modalities,--variables) now generate flags instead of producing an empty flag list. - Same merge runs in the description summary so the docstring's "Top-level fields" section reflects the merged shape.
Upgrade
go get github.com/orq-ai/bartolo@v0.4.0
go mod tidyThen regenerate your CLI to pick up flags for allOf-shaped endpoints. Existing flag generation is unchanged.
v0.3.0
Expand generated body field flags to cover nullable scalars, repeatable slices, string maps, and string enums.
Highlights
- Nullable scalars (
string | null,type: [X, "null"],anyOfwith null) now produce flags. Pass the literalnullto send an explicit JSON null. - Arrays of scalars produce repeatable flags:
--tag a --tag bor--tag a,b. additionalPropertiesstring maps produce key=value flags:--metadata region=eu --metadata tier=gold.- String enums produce flags with shell completion and value validation.
anyOf/oneOfwith a single non-null branch now collapse to that branch instead of being skipped silently.
Upgrade
go get github.com/orq-ai/bartolo@v0.3.0
go mod tidyThen regenerate your CLI to pick up the new flags. Existing scalar / bool / int / float flags continue to work unchanged.
v0.2.0
Bartolo v0.2.0
This release publishes the new generator/runtime compatibility surface required by recently generated CLIs.
Highlights:
- generated CLIs now support typed top-level body flags in addition to shorthand/stdin
- runtime exports BodyField and ApplyBodyFlags so new generated commands compile correctly
- generated projects are split into cmd/, cli/generated, and cli/custom
- auth setup/login, doctor --fix, server management, completions, examples, and bartolo sync are included in the scaffold
- JSON OpenAPI fixtures are covered in verification
If you generated a CLI against Bartolo main before this release, update it to v0.2.0 and run go mod tidy.
v0.1.0
Full Changelog: https://github.com/orq-ai/bartolo/commits/v0.1.0