Repository navigation
Promote staging to main: synth distributions + ODCS/TS SDK parity - #463
Merged
Merged
Conversation
… exponential) Optional per-field distribution on integer and number fields. Uniform stays the default and the rows are unchanged without a hint. Draws outside min/max are redrawn. Validation ignores the hint. ODCS: x-cg-distribution customProperty (import and export). Python SDK reads and checks the hint. Docs and tests.
Mirrors the Python SDK and the gateway. Tests with the official full example and a minimal contract. No version bump or publish; changelog notes the 0.4.2 bump needed.
… for composite key and relationships, notes in API responses
feat: synth distribution hints for numeric fields (normal, lognormal, exponential)
feat(sdk-ts): accept ODCS v3.x contracts and make ontology optional
ODCS: choose a schema object, notes for composite key and relationships
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
chore(sdk-ts): bump TypeScript SDK to 0.4.2
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes staging (bc71ead) to main. Three follow-ups to the ODCS compatibility fix (#458/#459). All additive and backward compatible, no migration.
Included
distributionon number and integer fields:uniform(default, unchanged),normal(mean, sd),lognormal(mean and sd of the underlying normal),exponential(rate). Values are truncated to min/max by resampling, pass the validator, and are deterministic per seed. The validation engine ignores the hint. ODCS: customPropertiesx-cg-distribution. Bad parameters give a clear error naming the field. Docs and the Python SDK model updated.ontologyoptional and ODCS v3.x accepted wherever the SDK parses a contract locally, mirroring the Python SDK. Tests added.schema_object(--schema-objectonvalidate,synth,test,enforce; API param onPOST /contracts/synthandPOST /contracts/import) picks one object of a multi-object schema, first by default. Unmapped content (ignored objects, composite primary key, relationships) is returned asnotesin API responses. Composite key uniqueness and relationships are not enforced (engine uniqueness is single field); the notes and docs say so.Verified on staging (build bc71ead)
x-cg-distributiongives mean 120.09, sd 24.89.tblwith two notes;schema_object: receiversimports that object; an unknown name returns 422 listingtbl, receivers.Before or after merge
package.jsonis deliberately not bumped here, so nothing publishes on merge. Seesdks/typescript/CHANGELOG.md.