Repository navigation
v0.12.0
PidginHost PHP SDK v0.12.0
Install from Packagist:
composer require pidginhost/sdk:0.12.0
Changed (breaking)
-
The eight
/api/cloud/buckets/routes now describe their real request and
response bodies. The bucket viewset advertised its fully read-onlyBucket
serializer as the body of every route, socreate,resizeandvisibility
documented no writable field to send, andcredentials/revealand
credentials/rotateclaimed to returnBucketwhile really returning an
access key and secret. Any client that trusted the documented shape
read a credential response that could not contain credentials -- and on
rotatethe old keys are already invalidated by then.New components:
BucketCreate(name,quota_gb,public_read),
BucketResize(quota_gb),BucketVisibility(public_read),
BucketCredentials(bucket,endpoint,region,access_key,
secret_key) andBucketCancelResponse(id,status).createdocuments
the202it really answers;DELETEreturns202with a body rather than
204; the two credential routes take no request body and declare
Cache-Control: no-store. -
Decimal fields are now
stringinstead offloat. The API serialises every
DecimalFieldas a JSON string (Django REST Framework's
COERCE_DECIMAL_TO_STRINGdefault), and the schema says so:
type: string, format: decimal. This generator mapped that tofloatanyway,
which cannot decode"12.50"-- so every response carrying a price failed
to parse, includingDeposit,Invoice,Subscription,Service,
Profile.funds,TLDpricing,ClusterDetail.price_per_monthand
FundsBalanceResponse.balance. 35 properties across 22 components were
affected. The Python, JS and Rust SDKs already produced strings; only this
one and Go did not.Read the value as a string and parse it with a decimal type of your choosing.
Do not use a binary float for money.
Fixed
- Generator bumped to openapi-generator 7.24.0, which fixes the escaping of
validate:"regexp=..."struct tags on pattern-constrained fields. No API
shapes changed.