Skip to content

tests: align generated+default materialization with write_defaults - #12

Closed
callumalpass wants to merge 1 commit into
mainfrom
fix/write-defaults-generated-default-test
Closed

tests: align generated+default materialization with write_defaults#12
callumalpass wants to merge 1 commit into
mainfrom
fix/write-defaults-generated-default-test

Conversation

@callumalpass

Copy link
Copy Markdown
Collaborator

Summary

Align a conformance expectation with current write_defaults semantics.

  • In generated-default-interaction.yaml, the test create uses generated value not default now expects both code and category to be written.
  • category is default-only and should be materialized when write_defaults is true (default).

Why

Spec text says default-only fields are written when write_defaults is true, but this test previously expected omission for category.

Fixes #11

@callumalpass

Copy link
Copy Markdown
Collaborator Author

Closing during repository cleanup: after reconciling with current main, this branch has no net diff because the generated/default expectation is already present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conformance mismatch: generated+default test omits default-only field despite write_defaults=true

1 participant