Skip to content

feat(rust): Add Options::from_directory_and_schemas()#115

Open
jan-auer wants to merge 1 commit into
mainfrom
feat/rust-client-from-directory-and-schemas
Open

feat(rust): Add Options::from_directory_and_schemas()#115
jan-auer wants to merge 1 commit into
mainfrom
feat/rust-client-from-directory-and-schemas

Conversation

@jan-auer
Copy link
Copy Markdown
Member

@jan-auer jan-auer commented Apr 9, 2026

Adds Options::from_directory_and_schemas() for loading schemas from in-memory strings and values from an explicit directory path. Useful for tests and non-standard deployment layouts where the schema is embedded but values live in a specific directory.

Refactors from_schemas() to delegate to it, eliminating duplicated construction logic. Also re-exports serde_json::Value as pub use as a side-effect of the refactor, so callers don't need a direct serde_json dependency to work with option values.

- Re-exports `serde_json::Value` as `pub use` so callers don't need a
  direct `serde_json` dependency to use the return type.
- Adds `Options::from_directory_and_schemas()` for loading schemas from
  in-memory strings and values from an explicit directory path (useful
  for tests and non-standard layouts).
- Refactors `from_schemas()` to delegate to `from_directory_and_schemas()`,
  removing duplicated construction logic.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jan-auer jan-auer force-pushed the feat/rust-client-from-directory-and-schemas branch from 07cbea4 to 1156562 Compare April 9, 2026 10:13
@jan-auer jan-auer marked this pull request as ready for review April 9, 2026 10:14
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.

1 participant