Repository navigation
ODCS: choose a schema object, notes for composite key and relationships - #462
Merged
Merged
Conversation
… for composite key and relationships, notes in API responses
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Follow-up to #458 (ODCS compatibility): the mapping gaps that can be closed without an engine change.
What changes
schema.schema_objectpicks the object to import, byname(physicalNameandidalso match). The first is still the default, so nothing changes for existing files.--schema-object NAMEonvalidate,synth,test,enforce.schema_objectonPOST /contracts/synth(withyaml_content) andPOST /contracts/import.schema_object) is returned asnotesin the JSON ofPOST /contracts/synthandPOST /contracts/import. Omitted when empty, so existing clients see no change.relationships. No natural target in a contract that validates one object's events, so not mapped. A note says so.docs/odcs/using-odcs-directly.md,field-mapping.md,synthetic-data-reference.md. OpenAPI updated for both endpoints.Compatibility
Additive. New optional request fields and an optional response field. No migration. A DataContractGate export (lossless import) is a single contract;
schema_objectis noted as ignored there.Tests
tests/odcs_schema_object.rs(7), one new synth handler test, one newodcs_compattest; the full-example test now expects the relationships note.cargo test, clippy and fmt are clean.Skipped: composite uniqueness and relationship checks (engine work, out of scope).