Skip to content

v0.1.0 — Initial release

Choose a tag to compare

@bo-unitysvc bo-unitysvc released this 10 Apr 19:28
· 86 commits to main since this release

Initial release of unitysvc-core.

Split out from unitysvc-services (bo-unitysvc/unitysvc-services-archive#99). Contains only audience-neutral data models, JSON schemas, and generic validation helpers — no CLI, no HTTP client, no seller-specific catalog builders.

What's inside

  • Pydantic models — ProviderV1, OfferingV1, ListingV1, PromotionV1, ServiceGroupV1 and their data-class equivalents
  • Pricing — full pricing type system (token, time, data, count, image, step, revenue share, constant, add, multiply, max, min, first, tiered, graduated, expr), UsageData, validate_pricing, cost calculation
  • JSON schemas — generated schemas for provider_v1, offering_v1, listing_v1, promotion_v1, service_group_v1, base
  • DataValidator — per-file schema validation, union-field reference checks, API-key secret scanning, Jinja2 syntax validation
  • Utilities — content hashing, content-addressable keys, data file loaders (JSON/TOML with override merge), schema-based file discovery

Dependencies

pydantic, email-validator, jsonschema, jinja2, json5, tomli-w. No typer, rich, or httpx.