Repository navigation
A major release: entries marked Breaking, Behaviour change or Typing change need attention when upgrading. Regenerate your clients and review the diff; an existing config.py is never overwritten.
- Breaking: custom HTTP backends'
handle_sync_stream/handle_async_streamno longer takeinner_typeorresponse_parserand now yield lines asstr. - Behaviour change: request bodies include defaulted fields again; omitting unset fields is opt-in with
BaseConfig(request_body_exclude_unset=True)(#276, spec). - Behaviour change: newly generated
Configclasses read prefixed environment variables (e.g.BILLING_CLIENT_BASE_URL); set the prefix withstart-api --env-prefix(#281, spec). - Typing change: properties with no
requiredlist are generated as optional (#268, spec). - Typing change: inline
enums are generated astyping.Literal[...], fixing discriminated unions (#278, spec). - Typing change:
uuid,date-time,date,timeanddurationstring formats map touuid.UUIDanddatetimetypes (#280, spec). - Typing change: 2xx no-content responses stay in
response_mapasNone, and response$refs are dereferenced (#265, spec). - New
start-api --base-classoption to set the base class of generated models (#282, spec). APIExceptionandHTTPStatusErrornow live inclientele.http, andCacheBackendinclientele.api.config; the old import paths still work.- Fix generated clients left unformatted when
ruffisn't onPATH(#279, spec). - Fix duplicate enum members when values differ only by punctuation (#277, spec).
- Fix
schemas.pyfailing to import when aoneOf/anyOfalias or array model comes before a component it references (#291, spec).